Skip to content

Commit

Permalink
fix: force release on ci change
Browse files Browse the repository at this point in the history
OTT-2113
  • Loading branch information
oabdoun committed Oct 5, 2022
1 parent fd55d9a commit 383933e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,15 @@ jobs:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Unit & Acceptance Test
run: make test
- run: make test
env:
AWS_ACCOUNT_ID: "319158032161"
AWS_REGION: "eu-central-1"
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
- uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down Expand Up @@ -73,15 +69,12 @@ jobs:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Release
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT_SEMANTIC_RELEASE }}
run: npx semantic-release
15 changes: 5 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,18 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/[email protected]
- run: git fetch --prune --unshallow
- uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Import GPG key
id: import_gpg
- id: import_gpg
uses: hashicorp/[email protected]
env:
# These secrets will need to be configured for the repository:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/[email protected]
- uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
Expand Down

0 comments on commit 383933e

Please sign in to comment.