v1.0.0 #2
Workflow file for this run
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
| name: Publish | |
| on: | |
| release: | |
| types: | |
| - published | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| homebrew: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create GitHub App Token | |
| uses: actions/create-github-app-token@v2 | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.TASTENDRUCK_APP_ID }} | |
| private-key: ${{ secrets.TASTENDRUCK_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| repositories: homebrew-tap | |
| permission-actions: write | |
| - name: Dispatch Update Workflow on Homebrew Tap Repository | |
| run: | | |
| gh workflow run update.yml \ | |
| --repo "typisttech/homebrew-tap" \ | |
| --ref "main" | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| cloudsmith: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: gh release download --repo "${REPO}" --pattern '*.deb' "${TAG}" | |
| env: | |
| REPO: ${{ github.repository }} | |
| TAG: ${{ github.ref_name }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Attestation verification | |
| run: | | |
| for arch in ${ARCHS}; do | |
| echo "::group::==> ${arch}" | |
| gh attestation verify --repo "${REPO}" "composer-semver_Linux_${arch}.deb" | |
| echo "::endgroup::" | |
| done | |
| env: | |
| REPO: ${{ github.repository }} | |
| ARCHS: "arm64 amd64" | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Push composer-semver_Linux_arm64.deb | |
| uses: cloudsmith-io/[email protected] | |
| with: | |
| api-key: ${{ secrets.CLOUDSMITH_API_KEY_TASTENDRUCK }} | |
| command: push | |
| format: deb | |
| owner: typisttech | |
| repo: oss | |
| distro: any-distro | |
| release: any-version | |
| file: composer-semver_Linux_arm64.deb | |
| - name: Push composer-semver_Linux_amd64.deb | |
| uses: cloudsmith-io/[email protected] | |
| with: | |
| api-key: ${{ secrets.CLOUDSMITH_API_KEY_TASTENDRUCK }} | |
| command: push | |
| format: deb | |
| owner: typisttech | |
| repo: oss | |
| distro: any-distro | |
| release: any-version | |
| file: composer-semver_Linux_amd64.deb |