added chassis image for Stornado F2 #104
Workflow file for this run
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
name: Build Packages | |
on: | |
push: | |
branches: | |
- build | |
- bugfix | |
tags: | |
- 'v*.*.*' | |
jobs: | |
main: | |
runs-on: self-hosted | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Package Binaries | |
run: build-packages ${{github.repository}} ${{github.workspace}} --env NPM_AUTH_TOKEN ${{secrets.NPM_AUTH_PAT}} | |
- name: Set Variables | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
echo "PRERELEASE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.prerelease')" >> $GITHUB_ENV | |
echo "TITLE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.title')" >> $GITHUB_ENV | |
echo "VERSION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.version')" >> $GITHUB_ENV | |
echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.buildVersion')" >> $GITHUB_ENV | |
- name: GitHub Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{env.TITLE}} ${{env.VERSION}} | |
prerelease: ${{env.PRERELEASE}} | |
body_path: ${{github.workspace}}/CHANGELOG.md | |
files: | | |
${{github.workspace}}/dist/packages/*/*.deb | |
${{github.workspace}}/dist/packages/*/*.rpm | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Update Repository | |
if: startsWith(github.ref, 'refs/tags/') | |
run: update-repositories ${{github.workspace}} | |
- name: Publish Repository | |
if: startsWith(github.ref, 'refs/tags/') | |
run: publish-repo |