Fix incorrect capital letter in workflow #7
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: Build and Publish Packages | |
| on: | |
| push: | |
| tags: ["*.*.*"] | |
| jobs: | |
| build: | |
| permissions: write-all | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - id: go | |
| name: Install go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.25.0 | |
| cache-dependency-path: go.mod | |
| - name: Setup OSSign | |
| uses: ossign/actions/setup-ossign@main | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| ossignConfig: "" | |
| - name: Goreleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| if: ${{ github.ref_name != 'main' }} | |
| with: | |
| version: ${{ github.event.release.tag.name }} | |
| args: release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }} | |
| MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }} | |
| MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }} | |
| MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }} | |
| MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }} | |
| OSSIGN_CONFIG: ${{ secrets.OSSIGN_CONFIG }} | |
| - name: Upload Gitea artifacts (due to buggy behaviour with goreleaser) | |
| run: | | |
| curl --upload-file dist/tlsniff_Linux_amd64.deb -u "ossign-dev:${{ secrets.PACKAGE_REPO_SECRET }}" https://pkg.ossign.org/debian/pool/all/main/upload | |
| curl --upload-file dist/tlsniff_Linux_arm64.deb -u "ossign-dev:${{ secrets.PACKAGE_REPO_SECRET }}" https://pkg.ossign.org/debian/pool/all/main/upload | |
| curl --upload-file dist/tlsniff_Linux_amd64.rpm -u "ossign-dev:${{ secrets.PACKAGE_REPO_SECRET }}" https://pkg.ossign.org/rpm/upload | |
| curl --upload-file dist/tlsniff_Linux_arm64.rpm -u "ossign-dev:${{ secrets.PACKAGE_REPO_SECRET }}" https://pkg.ossign.org/rpm/upload | |
| curl --upload-file dist/tlsniff_Linux_amd64.apk -u "ossign-dev:${{ secrets.PACKAGE_REPO_SECRET }}" https://pkg.ossign.org/alpine/all/repository | |
| curl --upload-file dist/tlsniff_Linux_arm64.apk -u "ossign-dev:${{ secrets.PACKAGE_REPO_SECRET }}" https://pkg.ossign.org/alpine/all/repository | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release | |
| path: dist/** | |