Skip to content

Commit

Permalink
chore: fix windows
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jan 11, 2023
1 parent 5ec6d29 commit bdc198c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ jobs:
DOCKER_CLI_EXPERIMENTAL: "enabled"
flags: ""
steps:
- if: ${{ github.event_name == 'workflow_dispatch' }}
shell: bash
run: echo "flags=--nightly" >> $GITHUB_ENV
- if: matrix.os == 'ubuntu-latest'
shell: bash
run: echo "goos=linux" >> $GITHUB_ENV
- if: matrix.os == 'macos-latest'
shell: bash
run: echo "goos=darwin" >> $GITHUB_ENV
- if: matrix.os == 'windows-latest'
shell: bash
run: echo "goos=windows" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -53,13 +41,25 @@ jobs:
- shell: bash
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- id: cache
uses: actions/cache@v3
- uses: actions/cache@v3
if: matrix.os == 'ubuntu-latest'
with:
path: dist/${{ env.goos }}
key: ${{ env.goos }}-${{ env.sha_short }}
path: dist/linux
key: linux-${{ env.sha_short }}
- uses: actions/cache@v3
if: matrix.os == 'macos-latest'
with:
path: dist/darwin
key: darwin-${{ env.sha_short }}
- uses: actions/cache@v3
if: matrix.os == 'windows-latest'
with:
path: dist\windows
key: windows-${{ env.sha_short }}
- if: ${{ github.event_name == 'workflow_dispatch' }}
shell: bash
run: echo "flags=--nightly" >> $GITHUB_ENV
- uses: goreleaser/goreleaser-action@v4
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
with:
distribution: goreleaser-pro
version: latest
Expand Down

0 comments on commit bdc198c

Please sign in to comment.