github.com/nektos/act@v0.2.83/.github/workflows/release.yml (about) 1 name: release 2 on: 3 push: 4 tags: 5 - v* 6 7 permissions: 8 contents: write 9 actions: write 10 11 jobs: 12 release: 13 name: release 14 runs-on: ubuntu-latest 15 environment: release 16 steps: 17 - uses: actions/checkout@v4 18 with: 19 fetch-depth: 0 20 - uses: actions/setup-go@v5 21 with: 22 go-version-file: go.mod 23 - name: GoReleaser 24 uses: goreleaser/goreleaser-action@v6 25 with: 26 version: latest 27 args: release --clean 28 env: 29 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 30 - name: Winget 31 uses: vedantmgoyal2009/winget-releaser@v2 32 with: 33 identifier: nektos.act 34 installers-regex: '_Windows_\w+\.zip$' 35 token: ${{ secrets.WINGET_TOKEN }} 36 - name: Chocolatey 37 uses: ./.github/actions/choco 38 with: 39 version: ${{ github.ref }} 40 apiKey: ${{ secrets.CHOCO_APIKEY }} 41 push: true 42 - name: GitHub CLI extension 43 uses: actions/github-script@v7 44 with: 45 github-token: ${{ secrets.GH_ACT_TOKEN }} 46 script: | 47 const mainRef = (await github.rest.git.getRef({ 48 owner: 'nektos', 49 repo: 'gh-act', 50 ref: 'heads/main', 51 })).data; 52 console.log(mainRef); 53 github.rest.git.createRef({ 54 owner: 'nektos', 55 repo: 'gh-act', 56 ref: context.ref, 57 sha: mainRef.object.sha, 58 });