Skip to content

Commit

Permalink
github: Update workflow actions to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Sep 23, 2024
1 parent d45f424 commit 1da90a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set environment variables
id: vars
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
mv $P-$V.zip _cidist/
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle-firmware.ci.${{ steps.vars.outputs.sha_short }}
path: _cidist
30 changes: 3 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ on:
name: Release

jobs:

build-ubuntu:
build:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set environment variables
id: vars
Expand All @@ -26,34 +25,11 @@ jobs:
- name: Dependency packages (pip)
run: python3 -m pip install --user crcmod

- name: Build dist
- name: Build release
run: |
make -j4 dist
mv out/*.zip .
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: greaseweazle-firmware.ci.${{ steps.vars.outputs.ver }}
path: greaseweazle-firmware-${{ steps.vars.outputs.ver }}.zip

finalise:
needs: build-ubuntu
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3

- name: Set environment variables
id: vars
run: |
echo "ver=$(echo ${{ github.ref }} | sed -e's#.*/v##')" >> $GITHUB_OUTPUT
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: greaseweazle-firmware.ci.${{ steps.vars.outputs.ver }}

- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 1da90a0

Please sign in to comment.