release.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: release
  2. on:
  3. push:
  4. tags:
  5. - v*.*.*
  6. - v*.*-Beta*
  7. - v*.*-ExeBeta*
  8. workflow_dispatch:
  9. jobs:
  10. goreleaser:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v2
  15. with:
  16. fetch-depth: 0
  17. - name: Setup npm
  18. uses: bahmutov/npm-install@v1
  19. with:
  20. working-directory: frontend
  21. - name: Frontend Build
  22. run: npm run build
  23. working-directory: frontend
  24. - name: Set up Go
  25. uses: actions/setup-go@v2
  26. with:
  27. go-version: 1.17
  28. - name: Run GoReleaser
  29. uses: goreleaser/goreleaser-action@v2
  30. with:
  31. # either 'goreleaser' (default) or 'goreleaser-pro'
  32. distribution: goreleaser
  33. version: latest
  34. args: release -f .goreleaser-ChineseSubFinder.yml --clean
  35. env:
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  37. BASEKEY: ${{ secrets.BASEKEY }}
  38. AESKEY16: ${{ secrets.AESKEY16 }}
  39. AESIV16: ${{ secrets.AESIV16 }}