Skip to content

Commit

Permalink
ci: upload zipped artifacts on release
Browse files Browse the repository at this point in the history
  • Loading branch information
eligao committed Jul 31, 2023
1 parent 0a5ee4e commit ec4aeda
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Release

on:
release:
types: [published]
on: [push, workflow_dispatch]

permissions:
contents: write
Expand All @@ -22,9 +20,21 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build artifacts
run: python ./src/generate.py
run: |
python ./src/generate.py
zip -r dist.zip ./dist
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: ./dist
path: ./dist.zip
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./dist/*
name: Release ${{ github.ref }}
draft: false
prerelease: false
fail_on_unmatched_files: true

0 comments on commit ec4aeda

Please sign in to comment.