chore(locks): lock file maintenance (#1908) #1790
This file contains hidden or 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
| --- | |
| # yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json | |
| name: binaries | |
| "on": | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| binaries: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure aws | |
| uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: eu-central-1 | |
| - name: Setup golang | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Setup nodejs | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Setup task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup goreleaser | |
| uses: goreleaser/goreleaser-action@v7 | |
| with: | |
| install-only: true | |
| - name: Setup signing | |
| uses: crazy-max/ghaction-import-gpg@v7 | |
| with: | |
| gpg_private_key: ${{ secrets.GNUPG_KEY }} | |
| passphrase: ${{ secrets.GNUPG_PASSWORD }} | |
| - name: Run release | |
| run: | | |
| if [[ $GITHUB_REF == refs/tags/* ]]; then | |
| task build:release | |
| else | |
| task build:snapshot | |
| fi | |
| - name: Upload version | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| aws s3 sync --exclude "*" --include "kleister-api-*" dist s3://dl.kleister.eu/api/${{ github.ref_name }}/ | |
| - name: Upload testing | |
| if: startsWith(github.ref, 'refs/heads/') | |
| run: | | |
| aws s3 sync --exclude "*" --include "kleister-api-*" dist s3://dl.kleister.eu/api/testing/ | |
| - name: Install cloudsmith | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: cloudsmith-io/cloudsmith-cli-action@v2.0.2 | |
| with: | |
| api-key: ${{ secrets.CLOUDSMITH_API_KEY }} | |
| - name: Upload packages | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| for PACKAGE in dist/kleister-*.deb; do | |
| cloudsmith push deb kleister/general/any-distro/any-version "${PACKAGE}" | |
| done | |
| for PACKAGE in dist/kleister-*.rpm; do | |
| cloudsmith push rpm kleister/general/any-distro/any-version "${PACKAGE}" | |
| done | |
| ... |