Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish using GitHub releases #4

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
28 changes: 26 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,31 @@ jobs:
name: project
path: addons

publish:
publish-release:
needs: [package]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
with:
ref: master
- name: download all build artifacts
uses: actions/[email protected]
with:
name: project
path: addons
- name: compress release
run: |
mkdir dist
tar -czvf dist/godot-pure-data-universal.tar.gz -C addons .
- name: create release
uses: softprops/[email protected]
with:
files: dist/*
fail_on_unmatched_files: true

publish-commit:
needs: [package]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
Expand All @@ -69,7 +93,7 @@ jobs:
git push

remove-old-artifacts:
needs: [publish]
needs: [publish-release, publish-commit]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down