forked from aegis-icons/aegis-icons
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (33 loc) · 1.04 KB
/
release.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
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
run-name: Release @ Delta Aegis Icons - ${{ github.sha }}
on:
workflow_dispatch:
env:
zipname: delta-aegis-icons.zip
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Get current date
run: echo "CURRENT_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Execute py script
run: python make-pack.py gen-def
- name: Commit json
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update pack.json
- name: Execute py script
run: python make-pack.py gen --output ${{ env.zipname }} --version ${{ env.CURRENT_DATE }}
- name: Create a GitHub release
uses: softprops/[email protected]
with:
files: ${{ env.zipname }}
name: v${{ env.CURRENT_DATE }}
tag_name: v${{ env.CURRENT_DATE }}