-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate prereleases + update documentation of the build process (#104)
* Adds missing docs that should have been part of #102 (4ad7dca) * Add automated releases to CI again (fixes #106)
- Loading branch information
Showing
2 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
run: smalltalkci -s Squeak64-${{ matrix.smalltalk }} SBE-Tests.smalltalk.ston | ||
timeout-minutes: 15 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for coverage reports | ||
GITHUB_TOKEN: ${{ github.token }} # for coverage reports | ||
tex-assertions: | ||
name: 🧪 @TEST assertions [${{ matrix.smalltalk }}] | ||
runs-on: ubuntu-latest | ||
|
@@ -98,7 +98,7 @@ jobs: | |
run: mv SBE.pdf SBE-${{ matrix.smalltalk }}.pdf | ||
env: | ||
SQUEAK_VERSION: ${{ matrix.smalltalk }} | ||
- name: 💾 Store book | ||
- name: 💾 Upload artifact | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: book-${{ matrix.smalltalk }} | ||
|
@@ -109,6 +109,33 @@ jobs: | |
echo ::error::jobs.figures has failed, so the compiled PDF might miss some figures! | ||
echo "DEBUG_FIGURES=true" >> $GITHUB_ENV | ||
exit 1 | ||
release: | ||
name: ✈ Create pre-release | ||
needs: [tests, tex-assertions, build] | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Load artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
path: . | ||
- uses: thedoctor0/zip-release@master | ||
with: | ||
filename: ListingSources.zip | ||
path: listings | ||
- uses: benjlevesque/[email protected] | ||
id: short-sha | ||
- name: 📣 Create pre-release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: untagged-${{ steps.short-sha.outputs.sha }} | ||
body: ${{ github.event.head_commit.message }} | ||
files: | | ||
book-*/SBE-*.pdf | ||
ListingSources.zip | ||
prerelease: true | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
notify: | ||
name: 📣 Notify community on failure | ||
needs: [tests, tex-assertions, build] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters