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

Generate tarball and add to release #482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading