Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Jul 18, 2023
1 parent 41430ed commit 04284a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"**/examples",
"**/node_modules",
"**/dist",
"/.goreleaser.yml"
"**/.goreleaser.yml"
],
"absolute": true
}
17 changes: 14 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
passphrase: ${{ secrets.PASSPHRASE }}

- name: Set GoReleaser Git tags
run:
run: |
tags=$(git tag --list --sort=-version:refname 'v*')
echo "GORELEASER_CURRENT_TAG=$(awk 'NR==1 {print;exit}' <<< $tags)" >> "$GITHUB_ENV"
echo "GORELEASER_PREVIOUS_TAG=$(awk 'NR==2 {print;exit}' <<< $tags)" >> "$GITHUB_ENV"
echo GORELEASER_CURRENT_TAG=$(awk 'NR==1 {print;exit}' <<< "$tags") >> "$GITHUB_ENV"
echo GORELEASER_PREVIOUS_TAG=$(awk 'NR==2 {print;exit}' <<< "$tags") >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand All @@ -56,3 +56,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

- name: Display version
run: dist/caddy_linux_amd64_v1/mercure version

- name: Upload snapshot
if: ${{!startsWith(github.ref, 'refs/tags/v')}}
uses: actions/upload-artifact@v3
with:
name: snapshot
path: dist/*
retention-days: 1

0 comments on commit 04284a4

Please sign in to comment.