forked from Unity-Resource-Pack/Unity-Dark
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 832 Bytes
/
zip.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: ZIP
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
- name: Extract commit ish
shell: bash
run: echo "ish=$(echo ${GITHUB_SHA::7})" >> $GITHUB_OUTPUT
id: extract_ish
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
# Artifact name
name: unity-dark-${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_ish.outputs.ish }}.${{ github.run_id }}
# A file, directory or wildcard pattern that describes what to upload
path: |
assets/**
LICENSE.md
pack.mcmeta
pack.png