diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index 8adcb0c..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,28 +0,0 @@ -on: - release: - types: [created] - -jobs: - releases-matrix: - name: Release - runs-on: ubuntu-latest - strategy: - matrix: - goos: [linux] - goarch: [arm, amd64] - steps: - - uses: actions/checkout@v2 - - - name: Get tag - id: tag - uses: dawidd6/action-get-tag@v1 - - - uses: wangyoucao577/go-release-action@v1.14 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goarch: ${{ matrix.goarch }} - goos: ${{ matrix.goos }} - goversion: https://dl.google.com/go/go1.16beta1.linux-amd64.tar.gz - ldflags: -X main.version=${{ steps.tag.outputs.tag }} - md5sum: false - sha256sum: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 507ec17..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,25 +0,0 @@ -on: - push: - tags: - - "*" - -name: Create release - -jobs: - build: - name: Create release from tag - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Create release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: This release was automatically generated by GitHub Actions. - draft: false - prerelease: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c1505b3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,61 @@ +name: Release +on: + push: + branches: + - main +jobs: + tag: + name: Bump version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.36.0 + env: + DEFAULT_BUMP: build + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: false + + release: + name: Create release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: This release was automatically generated by GitHub Actions. + draft: false + prerelease: false + + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux] + goarch: [arm, amd64] + steps: + - uses: actions/checkout@v2 + + - name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + + - uses: wangyoucao577/go-release-action@v1.14 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goarch: ${{ matrix.goarch }} + goos: ${{ matrix.goos }} + goversion: https://dl.google.com/go/go1.16beta1.linux-amd64.tar.gz + ldflags: -X main.version=${{ steps.tag.outputs.tag }} + md5sum: false + sha256sum: true diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml deleted file mode 100644 index 75c952d..0000000 --- a/.github/workflows/tag.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Bump version -on: - push: - branches: - - main -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: "0" - - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.36.0 - env: - DEFAULT_BUMP: build - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: false