Skip to content

Commit

Permalink
chore: update workflows for new secrets mgmt (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrisoline authored Oct 29, 2024
1 parent a586675 commit 202c344
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Release

on:
push:
branches: [ master ]
branches: [master]

jobs:
release:
environment: PROD
name: Release
runs-on: ubuntu-latest
env:
Expand All @@ -15,17 +16,31 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_PAT }}
token: ${{ secrets.GH_SEMANTIC_RELEASE_PAT }}

- name: Start Deploy Message
uses: Basis-Theory/github-actions/deploy-slack-action@master
with:
slack-api-token: ${{ secrets.SLACK_DUCKBOT_API_KEY }}
channel: ${{ vars.SLACK_DUCKBOT_PRODUCT_DEPLOY_CHANNEL }}

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
node-version: "14"
cache: "yarn"

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_PAT }}
GITHUB_TOKEN: ${{ secrets.GH_SEMANTIC_RELEASE_PAT }}
run: |
yarn install --frozen-lockfile
yarn release
- name: Stop Deploy Message
if: always()
uses: Basis-Theory/github-actions/deploy-slack-action@master
with:
slack-api-token: ${{ secrets.SLACK_DUCKBOT_API_KEY }}
channel: ${{ vars.SLACK_DUCKBOT_PRODUCT_DEPLOY_CHANNEL }}
status: "done"
5 changes: 3 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Verify
on:
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
environment: PR
name: Build
strategy:
matrix:
go-version: [ '1.16', '1.17', '1.18', '1.19', '1.20' ]
go-version: ["1.16", "1.17", "1.18", "1.19", "1.20"]
runs-on: ubuntu-latest
env:
CI: 1
Expand Down

0 comments on commit 202c344

Please sign in to comment.