Skip to content

Commit

Permalink
chore: builds-action (#521)
Browse files Browse the repository at this point in the history
better setup for release and/or publish.
  • Loading branch information
Zeeshan Lakhani committed Jan 20, 2024
1 parent 9f06487 commit ec90c1b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ concurrency:

jobs:
binary-builds:
if: startsWith(github.event.release.name, 'homestar-runtime')
if: >
startsWith(github.event.release.name, 'homestar-runtime') ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.force-publish)
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -78,7 +80,6 @@ jobs:
if: endsWith(matrix.target, 'windows-msvc')

- name: Compile
if: github.event_name != 'release'
run: cargo build -p homestar-runtime --locked --release --target ${{ matrix.target }}

- name: Upload Release Artifacts
Expand All @@ -100,7 +101,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

npm-publish:
if: startsWith(github.event.release.name, 'homestar-runtime')
needs: binary-builds
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -170,7 +170,6 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

build-packages:
if: startsWith(github.event.release.name, 'homestar-runtime')
needs: binary-builds
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -237,7 +236,9 @@ jobs:
*.rpm
docker-build:
if: startsWith(github.event.release.name, 'homestar-runtime')
if: >
startsWith(github.event.release.name, 'homestar-runtime') ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.force-publish)
runs-on: ubuntu-latest

env:
Expand Down

0 comments on commit ec90c1b

Please sign in to comment.