From 18391b5aee4086c7d6de8c647d176eadf69baf34 Mon Sep 17 00:00:00 2001 From: Alejandro Osornio Date: Sat, 7 Dec 2024 22:45:51 -0600 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 84 ++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 550b4a5..73c7bc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,47 +10,47 @@ jobs: runs-on: ubuntu-latest environment: "signing key" steps: - - name: checkout repo - uses: actions/checkout@v2 - with: - fetch-depth: '0' - - name: Build packages - run: | - echo "$GITHUB_REPOSITORY" > ./repo - echo -n "$GPG_SIGNING_KEY" > ./gpg_key - file ./gpg_key - docker run -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh - ls -l . - env: - GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - - - name: generate tag - id: tag - run: | - count=$(git rev-list --count HEAD) - hash=$(git rev-parse --short HEAD) - echo "::set-output name=tag::r${count}.${hash}" - - - name: Print sha512sums - run: sha512sum */*.pkg.tar.* + - name: checkout repo + uses: actions/checkout@v3 + with: + fetch-depth: "0" + - name: Build packages + run: | + echo "$GITHUB_REPOSITORY" > ./repo + echo -n "$GPG_SIGNING_KEY" > ./gpg_key + file ./gpg_key + docker run -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh + ls -l . + env: + GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - - name: Upload Packages Artifact - uses: actions/upload-artifact@v2 - with: - name: packages-${{ steps.tag.outputs.tag }} - path: | - ${{ github.workspace }}/*.pkg.tar.* - ${{ github.workspace }}/*.files* - ${{ github.workspace }}/*.db* + - name: generate tag + id: tag + run: | + count=$(git rev-list --count HEAD) + hash=$(git rev-parse --short HEAD) + echo "::set-output name=tag::r${count}.${hash}" - - name: Release - if: ${{ github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[no rel]') }} - uses: softprops/action-gh-release@v1 - with: - files: | - ${{ github.workspace }}/*.pkg.tar.* - ${{ github.workspace }}/*.files* - ${{ github.workspace }}/*.db* - tag_name: packages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Print sha512sums + run: sha512sum */*.pkg.tar.* + + - name: Upload Packages Artifact + uses: actions/upload-artifact@v3 + with: + name: packages-${{ steps.tag.outputs.tag }} + path: | + ${{ github.workspace }}/*.pkg.tar.* + ${{ github.workspace }}/*.files* + ${{ github.workspace }}/*.db* + + - name: Release + if: ${{ github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[no rel]') }} + uses: softprops/action-gh-release@v1 + with: + files: | + ${{ github.workspace }}/*.pkg.tar.* + ${{ github.workspace }}/*.files* + ${{ github.workspace }}/*.db* + tag_name: packages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}