Skip to content

Commit

Permalink
fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahboston committed Aug 30, 2023
1 parent 691c0db commit 6c8873d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 43 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/publish-docker-image-every-release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
name: Publish Docker image every release

on:
release:
types: [published]
push:
tags:
- '*'
branches:
- master

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
registry-url: https://npm.pkg.github.com/
node-version: "lts/*"
scope: "@nft42"
- run: npm install @semantic-release/git
- name: Release
env:
# GIT_AUTHOR_NAME: elijahboston
# GIT_AUTHOR_EMAIL: elijah@nameless.io
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}`
run: npx semantic-release
publish-dev:
needs: release
uses: ./.github/workflows/docker-release.yml
with:
service_name: blockscout-stealthtest
Expand All @@ -18,6 +46,7 @@ jobs:
DEVOPS_SERVICE_ACCOUNT_JSON: ${{ secrets.DEVOPS_SERVICE_ACCOUNT_JSON }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-staging:
needs: release
uses: ./.github/workflows/docker-release.yml
with:
service_name: blockscout-stealthtest
Expand All @@ -27,6 +56,7 @@ jobs:
DEVOPS_SERVICE_ACCOUNT_JSON: ${{ secrets.DEVOPS_SERVICE_ACCOUNT_JSON }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-prod:
needs: release
uses: ./.github/workflows/docker-release.yml
with:
service_name: blockscout-stealthtest
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/publish-release.yml

This file was deleted.

0 comments on commit 6c8873d

Please sign in to comment.