From 1b2ac63fe49fd0aac4a32f504fea8be579be66b6 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Sun, 14 Jul 2024 00:10:16 +0200 Subject: [PATCH] fix line endings --- .github/workflows/release.yaml | 102 ++++++++++++++++----------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1ddc2325..98e96535 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,51 +1,51 @@ -name: "Build release artifacts" -on: - push: - tags: - - "v*" - workflow_dispatch: - -permissions: - contents: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - name: Get version from tag - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - run: echo "TRAVIS_TAG=${{ github.ref_name }}" >> $GITHUB_ENV - - - run: make release - - run: make dgoss-sha256 dcgoss-sha256 kgoss-sha256 - - - name: "Upload binary as artifact" - uses: actions/upload-artifact@v4 - with: - retention-days: 5 - if-no-files-found: error - name: build - path: | - release/* - extras/*/*goss - extras/*/*goss.sha256 - - attach-assets: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - needs: ["build"] - runs-on: ubuntu-latest - steps: - - name: Fetch all binaries - uses: actions/download-artifact@v4 - - name: Attach to release - uses: softprops/action-gh-release@v2 - with: - files: build/** - fail_on_unmatched_files: true +name: "Build release artifacts" +on: + push: + tags: + - "v*" + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Get version from tag + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + run: echo "TRAVIS_TAG=${{ github.ref_name }}" >> $GITHUB_ENV + + - run: make release + - run: make dgoss-sha256 dcgoss-sha256 kgoss-sha256 + + - name: "Upload binary as artifact" + uses: actions/upload-artifact@v4 + with: + retention-days: 5 + if-no-files-found: error + name: build + path: | + release/* + extras/*/*goss + extras/*/*goss.sha256 + + attach-assets: + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + needs: ["build"] + runs-on: ubuntu-latest + steps: + - name: Fetch all binaries + uses: actions/download-artifact@v4 + - name: Attach to release + uses: softprops/action-gh-release@v2 + with: + files: build/** + fail_on_unmatched_files: true