From 4047924c6130ce4ecd6340af4e2841e9fd3f26d5 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 19 May 2024 12:32:47 -0500 Subject: [PATCH 1/6] Remove unnecessary quotes --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 397cd91cf..1c8406ece 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,7 +134,7 @@ jobs: path: _build/repack/ - name: Set Version run: | - VERSION=$(echo "${{ github.event.release.tag_name }}" | tr -d "v") + VERSION=$(echo "${{ github.event.release.tag_name }}" | tr -d v) echo "RPM_VERSION=${VERSION}.$(date +'%g%j')" >> $GITHUB_ENV - name: Build rpm run: ./build rpm --configuration=Release --exclusive From 37788fdb7b32487c7888733e0ca48dd10d6b66ce Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 19 May 2024 12:31:03 -0500 Subject: [PATCH 2/6] Set, fix, or improve step names --- .github/workflows/build.yml | 6 ++++-- .github/workflows/deploy.yml | 26 +++++++++++++++----------- .github/workflows/notify.yml | 7 +++++-- .github/workflows/release.yml | 33 +++++++++++++++++++-------------- .github/workflows/smoke.yml | 3 ++- .github/workflows/test.yml | 6 ++++-- 6 files changed, 49 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f6d892d7..c1a272c86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,12 +14,14 @@ jobs: - uses: actions/checkout@v4 - name: Build ckan.exe and netkan.exe run: ./build --configuration=${{ inputs.configuration }} - - uses: actions/upload-artifact@v4 + - name: Upload repack artifact + uses: actions/upload-artifact@v4 with: name: ${{ inputs.configuration }}-repack-unsigned path: _build/repack/ retention-days: 7 - - uses: actions/upload-artifact@v4 + - name: Upload out artifact + uses: actions/upload-artifact@v4 with: name: ${{ inputs.configuration }}-out path: _build/out/ diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2c4686518..8ddb7521c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,7 +34,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} steps: - uses: actions/checkout@v4 - - name: Check version + - name: Treat as dev build if final piece of version is odd id: check-version shell: bash run: | @@ -58,7 +58,7 @@ jobs: aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 if: steps.credentials.outputs.credentials - - name: Push deb to S3 + - name: Push ckan.exe, netkan.exe, and version.json to S3 run: aws s3 sync _build/repack/Release s3://${AWS_S3_BUCKET} --follow-symlinks if: steps.credentials.outputs.credentials @@ -71,7 +71,8 @@ jobs: if: needs.upload-release-s3.outputs.odd-build && needs.upload-release-s3.outputs.credentials steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ @@ -100,7 +101,7 @@ jobs: aws-region: us-east-1 - name: Push deb to S3 run: aws s3 sync _build/deb/apt-repo-root s3://${AWS_S3_BUCKET}/deb --follow-symlinks - - name: Push stable APT repo to S3 + - name: Push nightly APT repo to S3 run: aws s3 sync _build/deb/apt-repo-dist s3://${AWS_S3_BUCKET}/deb/dists/nightly --follow-symlinks upload-rpm: @@ -112,9 +113,10 @@ jobs: if: needs.upload-release-s3.outputs.odd-build && needs.upload-release-s3.outputs.credentials steps: - uses: actions/checkout@v4 - - name: Installing rpm build dependencies + - name: Install rpm build dependencies run: sudo apt-get install -y createrepo-c - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ @@ -127,7 +129,7 @@ jobs: echo "$DEBIAN_PRIVATE_KEY" | base64 --decode | gpg --batch --import gpg --list-secret-keys --keyid-format LONG if: ${{ env.DEBIAN_PRIVATE_KEY }} - - name: Build rpm repository + - name: Build nightly RPM repo env: CODENAME: nightly DEBIAN_PRIVATE_KEY: ${{ secrets.DEBIAN_PRIVATE_KEY }} @@ -139,7 +141,7 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - - name: Push rpm to S3 + - name: Push nightly PRM repo to S3 run: aws s3 sync _build/rpm/repo s3://${AWS_S3_BUCKET}/rpm/nightly --follow-symlinks upload-inflator: @@ -151,11 +153,12 @@ jobs: if: needs.upload-release-s3.outputs.credentials steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ - - name: Generate inflator Docker image and publish to Hub + - name: Generate inflator Docker image, publish to Hub, and restart AWS containers env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -174,7 +177,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index eda9aa26e..1112ee277 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -15,14 +15,17 @@ on: jobs: notify: + name: Notify Discord runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Clone Discord hooks repo + uses: actions/checkout@v4 with: repository: DiscordHooks/github-actions-discord-webhook path: webhook fetch-depth: 1 - - env: + - name: Send notification + env: WORKFLOW_NAME: ${{ inputs.name }} HOOK_OS_NAME: ${{ runner.os }} shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c8406ece..fc5991a42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,8 @@ jobs: - test-release - smoke-inflator steps: - - uses: actions/download-artifact@v4 + - name: Download out artifact + uses: actions/download-artifact@v4 with: name: Release-repack-out path: _build/out/ @@ -59,15 +60,16 @@ jobs: - smoke-inflator steps: - uses: actions/checkout@v4 - - name: OSX build dependencies + - name: Install OSX build dependencies run: sudo apt-get install -y libplist-utils xorriso - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ - name: Build dmg run: ./build osx --configuration=Release --exclusive - - name: Upload OSX release + - name: Upload OSX release asset run: gh release upload ${{ github.event.release.tag_name }} _build/osx/CKAN.dmg env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -79,11 +81,12 @@ jobs: - smoke-inflator steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ - - name: Set Version + - name: Set deb version run: | VERSION=$(echo "${{ github.event.release.tag_name }}" | tr -d "v") echo "DEB_VERSION=${VERSION}.$(date +'%g%j')" >> $GITHUB_ENV @@ -114,7 +117,7 @@ jobs: run: aws s3 sync _build/deb/apt-repo-root s3://${AWS_S3_BUCKET}/deb --follow-symlinks - name: Push stable APT repo to S3 run: aws s3 sync _build/deb/apt-repo-dist s3://${AWS_S3_BUCKET}/deb/dists/stable --follow-symlinks - - name: Upload Deb release + - name: Upload deb release asset run: gh release upload ${{ github.event.release.tag_name }} _build/deb/ckan_${DEB_VERSION}_all.deb env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -126,13 +129,14 @@ jobs: - smoke-inflator steps: - uses: actions/checkout@v4 - - name: Installing rpm build dependencies + - name: Install rpm build dependencies run: sudo apt-get install -y createrepo-c - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ - - name: Set Version + - name: Set rpm version run: | VERSION=$(echo "${{ github.event.release.tag_name }}" | tr -d v) echo "RPM_VERSION=${VERSION}.$(date +'%g%j')" >> $GITHUB_ENV @@ -144,7 +148,7 @@ jobs: run: | echo "$DEBIAN_PRIVATE_KEY" | base64 --decode | gpg --batch --import gpg --list-secret-keys --keyid-format LONG - - name: Build rpm repository + - name: Build stable RPM repo env: CODENAME: stable DEBIAN_PRIVATE_KEY: ${{ secrets.DEBIAN_PRIVATE_KEY }} @@ -156,9 +160,9 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - - name: Push rpm to S3 + - name: Push stable RPM repo to S3 run: aws s3 sync _build/rpm/repo s3://${AWS_S3_BUCKET}/rpm/stable --follow-symlinks - - name: Upload RPM release + - name: Upload RPM release asset run: gh release upload ${{ github.event.release.tag_name }} _build/rpm/RPMS/noarch/ckan-${RPM_VERSION}-1.noarch.rpm env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -171,7 +175,8 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index be9c575f3..e5af9a62d 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -18,7 +18,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Release-repack-unsigned path: _build/repack/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f61a7822..8c6e78005 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,11 +16,13 @@ jobs: - uses: actions/checkout@v4 - name: Install runtime dependencies run: sudo apt-get install -y xvfb - - uses: actions/download-artifact@v4 + - name: Download out artifact + uses: actions/download-artifact@v4 with: name: Debug-out path: _build/out/ - - uses: actions/download-artifact@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 with: name: Debug-repack-unsigned path: _build/repack/ From 3ec5dda7a79482b0130d1317c975695a3abd38d7 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 19 May 2024 12:32:10 -0500 Subject: [PATCH 3/6] Label out artifacts unsigned, fix repack-out artifact name --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1a272c86..7f2db3359 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Upload out artifact uses: actions/upload-artifact@v4 with: - name: ${{ inputs.configuration }}-out + name: ${{ inputs.configuration }}-out-unsigned path: _build/out/ retention-days: 1 - name: Upload ckan.exe artifact diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc5991a42..0ee7b1106 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: - name: Download out artifact uses: actions/download-artifact@v4 with: - name: Release-repack-out + name: Release-out-unsigned path: _build/out/ - name: Publish ckan.dll to NuGet env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c6e78005..d7d1b02ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: - name: Download out artifact uses: actions/download-artifact@v4 with: - name: Debug-out + name: Debug-out-unsigned path: _build/out/ - name: Download repack artifact uses: actions/download-artifact@v4 From d970908cb73adc1d3a66e60e16185d5b753b3e07 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 19 May 2024 12:34:32 -0500 Subject: [PATCH 4/6] Upload ckan.exe and AutoUpdater.exe assets together --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ee7b1106..869fe910f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,10 +180,8 @@ jobs: with: name: Release-repack-unsigned path: _build/repack/ - - name: Upload ckan.exe - run: gh release upload ${{ github.event.release.tag_name }} _build/repack/Release/ckan.exe - - name: Upload AutoUpdater.exe - run: gh release upload ${{ github.event.release.tag_name }} _build/repack/Release/AutoUpdater.exe + - name: Upload ckan.exe and AutoUpdater.exe release assets + run: gh release upload ${{ github.event.release.tag_name }} _build/repack/Release/ckan.exe _build/repack/Release/AutoUpdater.exe notify-discord: needs: From a8db1da6a5d950b44fe27f9d88634a04bc2ee9cc Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 19 May 2024 12:58:51 -0500 Subject: [PATCH 5/6] Refactor credentials and odd build check --- .github/workflows/deploy.yml | 84 +++++++++++++++++++---------------- .github/workflows/release.yml | 24 +++++----- 2 files changed, 57 insertions(+), 51 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8ddb7521c..450b06499 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,17 +21,10 @@ jobs: smoke-inflator: uses: ./.github/workflows/smoke.yml - upload-release-s3: - needs: - - test-release - - smoke-inflator + check-dev-build: runs-on: ubuntu-latest outputs: - odd-build: ${{ steps.check-version.outputs.odd-build }} - credentials: ${{ steps.credentials.outputs.credentials }} - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + dev-build: ${{ steps.check-version.outputs.dev-build }} steps: - uses: actions/checkout@v4 - name: Treat as dev build if final piece of version is odd @@ -41,35 +34,50 @@ jobs: VERSION=$(egrep '^\s*\#\#\s+v.*$' CHANGELOG.md | head -1 | sed -e 's/^\s*\#\#\s\+v//' -e 's/-.*$//') if [[ $VERSION =~ [13579]$ ]] then - echo 'odd-build=true' >> $GITHUB_OUTPUT + echo 'dev-build=true' >> $GITHUB_OUTPUT fi - - uses: actions/download-artifact@v4 - with: - name: Release-repack-unsigned - path: _build/repack/ - - name: Credentials - id: credentials - run: echo 'credentials=false' >> $GITHUB_OUTPUT - if: ${{ env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY }} - - name: Configure AWS Credentials + + upload-release-s3: + needs: + - test-release + - smoke-inflator + runs-on: ubuntu-latest + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + steps: + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - if: steps.credentials.outputs.credentials + - uses: actions/checkout@v4 + - name: Download repack artifact + uses: actions/download-artifact@v4 + with: + name: Release-repack-unsigned + path: _build/repack/ - name: Push ckan.exe, netkan.exe, and version.json to S3 run: aws s3 sync _build/repack/Release s3://${AWS_S3_BUCKET} --follow-symlinks - if: steps.credentials.outputs.credentials upload-deb: - needs: upload-release-s3 + needs: + - check-dev-build + - test-release + - smoke-inflator runs-on: ubuntu-latest env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - if: needs.upload-release-s3.outputs.odd-build && needs.upload-release-s3.outputs.credentials + if: needs.check-dev-build.outputs.dev-build steps: + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 - uses: actions/checkout@v4 - name: Download repack artifact uses: actions/download-artifact@v4 @@ -93,25 +101,28 @@ jobs: DEBIAN_PRIVATE_KEY: ${{ secrets.DEBIAN_PRIVATE_KEY }} run: ./build deb-sign --configuration=Release --exclusive if: ${{ env.DEBIAN_PRIVATE_KEY }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - name: Push deb to S3 run: aws s3 sync _build/deb/apt-repo-root s3://${AWS_S3_BUCKET}/deb --follow-symlinks - name: Push nightly APT repo to S3 run: aws s3 sync _build/deb/apt-repo-dist s3://${AWS_S3_BUCKET}/deb/dists/nightly --follow-symlinks upload-rpm: - needs: upload-release-s3 + needs: + - check-dev-build + - test-release + - smoke-inflator runs-on: ubuntu-latest env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - if: needs.upload-release-s3.outputs.odd-build && needs.upload-release-s3.outputs.credentials + if: needs.check-dev-build.outputs.dev-build steps: + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 - uses: actions/checkout@v4 - name: Install rpm build dependencies run: sudo apt-get install -y createrepo-c @@ -135,22 +146,17 @@ jobs: DEBIAN_PRIVATE_KEY: ${{ secrets.DEBIAN_PRIVATE_KEY }} run: ./build rpm-repo --configuration=Release --exclusive if: ${{ env.DEBIAN_PRIVATE_KEY }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - name: Push nightly PRM repo to S3 run: aws s3 sync _build/rpm/repo s3://${AWS_S3_BUCKET}/rpm/nightly --follow-symlinks upload-inflator: - needs: upload-release-s3 + needs: + - test-release + - smoke-inflator runs-on: ubuntu-latest env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - if: needs.upload-release-s3.outputs.credentials steps: - uses: actions/checkout@v4 - name: Download repack artifact diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 869fe910f..1b9b4ee88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,6 +80,12 @@ jobs: - test-release - smoke-inflator steps: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 - uses: actions/checkout@v4 - name: Download repack artifact uses: actions/download-artifact@v4 @@ -107,12 +113,6 @@ jobs: DEBIAN_PRIVATE_KEY: ${{ secrets.DEBIAN_PRIVATE_KEY }} run: ./build deb-sign --configuration=Release --exclusive if: ${{ env.DEBIAN_PRIVATE_KEY }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - name: Push deb to S3 run: aws s3 sync _build/deb/apt-repo-root s3://${AWS_S3_BUCKET}/deb --follow-symlinks - name: Push stable APT repo to S3 @@ -128,6 +128,12 @@ jobs: - test-release - smoke-inflator steps: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 - uses: actions/checkout@v4 - name: Install rpm build dependencies run: sudo apt-get install -y createrepo-c @@ -154,12 +160,6 @@ jobs: DEBIAN_PRIVATE_KEY: ${{ secrets.DEBIAN_PRIVATE_KEY }} run: ./build rpm-repo --configuration=Release --exclusive if: ${{ env.DEBIAN_PRIVATE_KEY }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - name: Push stable RPM repo to S3 run: aws s3 sync _build/rpm/repo s3://${AWS_S3_BUCKET}/rpm/stable --follow-symlinks - name: Upload RPM release asset From e46a1e80e6bc43aedcc8d64d71ed09331c2c6c7f Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 19 May 2024 12:59:02 -0500 Subject: [PATCH 6/6] Restore lost version.json generation for dev builds --- .github/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 450b06499..46cd0ccd5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,6 +58,16 @@ jobs: with: name: Release-repack-unsigned path: _build/repack/ + - uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Create a version.json file for dev builds on S3 + shell: bash + run: | + export PIP_ROOT_USER_ACTION=ignore + pip install gitpython + git config --global --add safe.directory '*' + python bin/version_info.py > _build/repack/Release/version.json - name: Push ckan.exe, netkan.exe, and version.json to S3 run: aws s3 sync _build/repack/Release s3://${AWS_S3_BUCKET} --follow-symlinks