Skip to content

Commit

Permalink
Generate tarball and add to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulthran committed Apr 4, 2024
1 parent a67f9be commit bfad89e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

If this is for a release:
* [ ] I have updated documentation
* [ ] I have updated the hardcoded version at the top of `install.sh` to match what this release's version will be
* [ ] I have created a release archive that will be attached to this release (`bash dev_scripts/generate_archive.sh`)
* [ ] I have updated the hardcoded version at the top of `install.sh` to match what this release's version will be
32 changes: 31 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

workflow_dispatch:

jobs:
run-tests:
uses: ./.github/workflows/tests.yml
Expand Down Expand Up @@ -44,13 +44,43 @@ jobs:
echo "Versions don't match, exiting..."
exit 1
fi
generate-tarball:
name: Generate Tarball and Add to Release
runs-on: ubuntu-latest
needs:
- run-tests
- check-version

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Generate Tarball
run: bash dev_scripts/generate_archive.sh

- name: Upload Tarball
uses: actions/upload-artifact@v2
with:
name: sunbeam.tar.gz
path: sunbeam.tar.gz

- name: Add Tarball to Release
uses: irongut/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: ${{ github.event.release.id }}
body: "### Sunbeam Tarball\nDownload the Sunbeam tarball from the release page to install Sunbeam locally.\n[Download Sunbeam Tarball](https://github.com/sunbeam-labs/sunbeam/releases/${{ needs.check-version.outputs.version }}/download/sunbeam.tar.gz"
replacebody: false
files: "sunbeam.tar.gz"

test-tarball:
name: Test Tarball
runs-on: ubuntu-latest
needs:
- run-tests
- check-version
- generate-tarball

steps:
- name: setup-conda
Expand Down

0 comments on commit bfad89e

Please sign in to comment.