Bump github.com/lestrrat-go/jwx/v2 from 2.0.8 to 2.0.19 (#29) #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ssh-sync:latest | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ">=1.19.7" | |
- | |
name: Go Build | |
run: go build -o ./win-build/ssh-sync.exe -ldflags "-X main.version=${{github.ref_name}}" | |
shell: powershell | |
- | |
name: Inno Build | |
run: | | |
& "${env:ProgramFiles(x86)}\Inno Setup 6\iscc.exe" /dMyAppVersion="${{github.ref_name}}" "$env:GITHUB_WORKSPACE\win-build\setup.iss" | |
shell: powershell | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ssh-sync-setup | |
path: ./win-build/Output/ssh-sync-setup.exe | |
retention-days: 5 | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ">=1.19.7" | |
- name: Go Build | |
run: go build -o ssh-sync -ldflags "-X main.version=${{github.ref_name}}" | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ssh-sync | |
path: ./ssh-sync | |
retention-days: 5 | |
- name: Install FPM | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ruby ruby-dev rubygems build-essential rpm | |
sudo gem install --no-document fpm | |
- name: Create a .deb package | |
run: | | |
fpm -s dir -t deb -n ssh-sync -v ${{ github.ref_name }} --description "ssh-sync" \ | |
--deb-no-default-config-files \ | |
./ssh-sync=/usr/local/bin/ssh-sync | |
- name: Create an .rpm package | |
run: | | |
fpm -s dir -t rpm -n ssh-sync -v ${{ github.ref_name }} --description "ssh-sync" \ | |
./ssh-sync=/usr/local/bin/ssh-sync | |
- name: Upload Linux Packages | |
uses: actions/upload-artifact@v2 | |
with: | |
name: packages | |
path: | | |
*.deb | |
*.rpm | |
release: | |
needs: [build-docker, build-windows, build-linux] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v3 | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "./ssh-sync-setup/ssh-sync-setup.exe,./ssh-sync/ssh-sync,./packages/*.deb,./packages/*.rpm" | |
update-winget-manifest: | |
needs: [build-docker, build-windows, build-linux, release] | |
runs-on: windows-latest | |
steps: | |
- uses: vedantmgoyal2009/winget-releaser@v2 | |
with: | |
identifier: therealpaulgg.ssh-sync | |
max-versions-to-keep: 5 # keep only latest 5 versions | |
token: ${{ secrets.ACCESS_TOKEN_CLASSIC }} |