Skip to content

Commit

Permalink
WIP: Test release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Dec 27, 2023
1 parent 8d6f989 commit b83499f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: ci
on:
pull_request:
push:
branches:
- main
on: push

jobs:
build_and_test:
Expand All @@ -29,3 +25,19 @@ jobs:
name: distribution
path: build/distributions/*.zip
if-no-files-found: 'error'
release:
name: Create draft release
runs-on: ubuntu-latest
needs: build_and_test
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: distribution
- name: Create release and upload distribution
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create --draft "${{ github.ref_name }}"
gh release upload "${{ github.ref_name }}" build/distributions/*.zip

0 comments on commit b83499f

Please sign in to comment.