Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github Action versions in the CI/CD pipelines #522

Merged
merged 4 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/cd-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check version tag format
run: |
TAG_VERSION="${{ github.event.release.tag_name }}"
Expand All @@ -29,7 +29,7 @@ jobs:
needs: version-check
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand All @@ -52,7 +52,7 @@ jobs:
pyinstaller \
ci-scripts/linux/pyinstaller/pynitrokey-onefile.spec
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nitropy-onefile
path: dist/nitropy
Expand All @@ -65,7 +65,7 @@ jobs:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nitropy-onefile
- name: Rename binary
Expand All @@ -80,6 +80,6 @@ jobs:
nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz \
nitropy-${{ github.event.release.tag_name }}-x64-linux-binary
- name: Publish release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz
10 changes: 5 additions & 5 deletions .github/workflows/cd-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check version tag format
run: |
TAG_VERSION="${{ github.event.release.tag_name }}"
Expand All @@ -29,7 +29,7 @@ jobs:
needs: version-check
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand All @@ -45,7 +45,7 @@ jobs:
. venv/bin/activate
flit build
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nitropy-pypi
path: dist
Expand All @@ -56,11 +56,11 @@ jobs:
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nitropy-pypi
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/cd-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check version tag format
run: |
$VERSION_TAG="${{ github.event.release.tag_name }}"
Expand All @@ -29,7 +29,7 @@ jobs:
needs: version-check
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Create virtual environment
run: |
python -m venv venv
Expand All @@ -49,7 +49,7 @@ jobs:
.\venv\Scripts\Activate.ps1
pyinstaller ci-scripts/windows/pyinstaller/pynitrokey-onedir.spec
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pynitrokey-onedir
path: dist/nitropy
Expand All @@ -59,7 +59,7 @@ jobs:
needs: version-check
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Create virtual environment
run: |
python -m venv venv
Expand All @@ -79,7 +79,7 @@ jobs:
.\venv\Scripts\Activate.ps1
pyinstaller ci-scripts/windows/pyinstaller/pynitrokey-onefile.spec
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pynitrokey-onefile
path: dist/nitropy.exe
Expand All @@ -89,9 +89,9 @@ jobs:
needs: build-onedir
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: pynitrokey-onedir
path: dist/nitropy
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
.\Sources.wixobj `
-o nitropy.msi
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nitropy-installer
path: nitropy.msi
Expand All @@ -139,7 +139,7 @@ jobs:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: pynitrokey-onefile
- name: Rename binary
Expand All @@ -153,7 +153,7 @@ jobs:
nitropy-${{ github.event.release.tag_name }}-x64-windows-binary.zip `
nitropy-${{ github.event.release.tag_name }}-x64-windows-binary.exe
- name: Publish release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: nitropy-${{ github.event.release.tag_name }}-x64-windows-binary.zip
publish-msi-installer:
Expand All @@ -164,7 +164,7 @@ jobs:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nitropy-installer
- name: Rename installer
Expand All @@ -173,6 +173,6 @@ jobs:
nitropy.msi `
nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi
- name: Publish release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
container: python:3.9-slim
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand All @@ -32,7 +32,7 @@ jobs:
container: python:3.9-slim
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand All @@ -49,7 +49,7 @@ jobs:
container: python:3.9-slim
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand All @@ -66,7 +66,7 @@ jobs:
container: python:3.9-slim
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install required packages
run: |
apt update
Expand Down