feat: rename commands to manage encryption keys (add/remove) (#643) #793
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: Publish | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
# TODO: Rework publish-binaries with a generic reusable action | |
publish-binaries: | |
uses: devantler-tech/.github/.github/workflows/dotnet-application-publish.yaml@main | |
secrets: inherit | |
# TODO: Remove old publish-binaries once the new one is working | |
publish-binaries-old: | |
name: Publish binaries | |
runs-on: macos-latest | |
steps: | |
- name: Generate GitHub App Token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.APP_ID }} | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
- name: βοΈ Setup Homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: βοΈ Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 9 | |
- name: π¦ Publish | |
run: | | |
version=$(echo "${{ github.ref_name }}" | sed -e 's/v//') | |
dotnet publish -c Release -r osx-x64 src/KSail/KSail.csproj /p:Version=$version | |
mv src/KSail/bin/Release/net9.0/osx-x64/publish/ksail ksail-darwin-amd64 | |
dotnet publish -c Release -r osx-arm64 src/KSail/KSail.csproj /p:Version=$version | |
mv src/KSail/bin/Release/net9.0/osx-arm64/publish/ksail ksail-darwin-arm64 | |
dotnet publish -c Release -r linux-x64 src/KSail/KSail.csproj /p:Version=$version | |
mv src/KSail/bin/Release/net9.0/linux-x64/publish/ksail ksail-linux-amd64 | |
dotnet publish -c Release -r linux-arm64 src/KSail/KSail.csproj /p:Version=$version | |
mv src/KSail/bin/Release/net9.0/linux-arm64/publish/ksail ksail-linux-arm64 | |
dotnet publish -c Release -r win-x64 src/KSail/KSail.csproj /p:Version=$version | |
mv src/KSail/bin/Release/net9.0/win-x64/publish/ksail.exe ksail-windows-amd64.exe | |
- name: π¦ Tar binaries | |
run: tar -czf ksail.tar.gz ksail-darwin-amd64 ksail-darwin-arm64 ksail-linux-amd64 ksail-linux-arm64 ksail-windows-amd64.exe | |
- name: π Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
ksail-darwin-amd64 | |
ksail-darwin-arm64 | |
ksail-linux-amd64 | |
ksail-linux-arm64 | |
ksail-windows-amd64.exe | |
ksail.tar.gz | |
token: ${{ steps.app-token.outputs.token }} | |
- name: πΊ Brew tap formulas | |
run: brew tap devantler-tech/formulas | |
- name: πΊ Brew bump formulas | |
run: | | |
brew bump --no-fork --open-pr --formulae ksail | |
# - name: πΊ Brew bump core formulas | |
# uses: Homebrew/actions/bump-packages@master | |
# with: | |
# token: ${{ steps.app-token.outputs.token }} | |
# formulae: | | |
# ksail | |
# TODO: Rework docker publish with a generic reusable action | |
publish-images: | |
uses: devantler-tech/.github/.github/workflows/image-publish.yaml@main | |
secrets: inherit |