diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 90b7d1a..2755a1f 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -5,11 +5,10 @@ permissions: on: push: - paths: - - "VERSION" - branches: - - main - workflow_dispatch: + paths: + - "VERSION" + branches: + - main jobs: build: @@ -39,7 +38,7 @@ jobs: go build -v -ldflags="-s -w" -o Picocrypt Picocrypt.go env: CGO_ENABLED: 1 - GOAMD64: v1 + GOAMD64: v2 - name: Package as .deb run: | @@ -73,11 +72,6 @@ jobs: if-no-files-found: error compression-level: 9 - - name: Generate checksums - run: | - echo "CHECKSUM_PICOCRYPT=$(sha256sum Picocrypt | cut -d ' ' -f1)" >> $GITHUB_ENV - echo "CHECKSUM_DEB=$(sha256sum Picocrypt.deb | cut -d ' ' -f1)" >> $GITHUB_ENV - - name: Release uses: softprops/action-gh-release@v2 with: @@ -86,8 +80,3 @@ jobs: Picocrypt.deb tag_name: ${{ env.VERSION }} make_latest: true - append_body: true - body: | - **Linux:** - `sha256(Picocrypt) ${{ env.CHECKSUM_PICOCRYPT }}` - `sha256(Picocrypt.deb) ${{ env.CHECKSUM_DEB }}` diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 72d11aa..77d6873 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -5,11 +5,10 @@ permissions: on: push: - paths: - - "VERSION" - branches: - - main - workflow_dispatch: + paths: + - "VERSION" + branches: + - main jobs: build: @@ -64,11 +63,6 @@ jobs: VERSION=$(cat VERSION) echo "VERSION=$VERSION" >> $GITHUB_ENV - - name: Generate checksums - run: | - HASH=$(shasum -a 256 Picocrypt.dmg | cut -d ' ' -f1) - echo "CHECKSUM_PICOCRYPT=$HASH" >> $GITHUB_ENV - - name: Release uses: softprops/action-gh-release@v2 with: @@ -76,7 +70,3 @@ jobs: Picocrypt.dmg tag_name: ${{ env.VERSION }} make_latest: true - append_body: true - body: | - **macOS:** - `sha256(Picocrypt.dmg) ${{ env.CHECKSUM_PICOCRYPT }}` diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 85e2f4d..00f2a70 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -5,10 +5,10 @@ permissions: on: push: - paths: - - "VERSION" - branches: - - main + paths: + - "VERSION" + branches: + - main workflow_dispatch: jobs: @@ -78,12 +78,6 @@ jobs: $version = Get-Content -Path "VERSION" echo "VERSION=$version" >> $env:GITHUB_ENV - - name: Generate checksums - shell: pwsh - run: | - $hash = Get-FileHash "src/Picocrypt.exe" -Algorithm SHA256 - echo "CHECKSUM_PICOCRYPT=$($hash.Hash)" >> $env:GITHUB_ENV - - name: Release uses: softprops/action-gh-release@v2 with: @@ -91,7 +85,3 @@ jobs: src/Picocrypt.exe tag_name: ${{ env.VERSION }} make_latest: true - append_body: true - body: | - **Windows:** - `sha256(Picocrypt.exe) ${{ env.CHECKSUM_PICOCRYPT }}`