Skip to content

Commit

Permalink
Set, fix, or improve step names
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed May 19, 2024
1 parent 4047924 commit 37788fd
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 32 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

Expand All @@ -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/
Expand Down Expand Up @@ -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:
Expand All @@ -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/
Expand All @@ -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 }}
Expand All @@ -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:
Expand All @@ -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 }}
Expand All @@ -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/
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 19 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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/
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 37788fd

Please sign in to comment.