Skip to content

Commit

Permalink
ci: temp disable release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed Nov 20, 2024
1 parent e84e603 commit 422ead4
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,54 +61,54 @@ jobs:
version: latest
args: check

release:
permissions:
# allow goreleaser to access the Releases API
contents: write
# Checks if this is a merge into the master(main) and creates a new release if yes.
if: github.event_name != 'pull_request'
needs: [test, lint, goreleaser-check]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Restore Go Modules Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build binary
run: |
make build
chmod +x ./autotag/autotag
- name: Autotag Merge Commit
# TODO: replace this with GitHub Action after #41
run: |
./autotag/autotag
echo "tags:" && git tag -l
- name: Install rpm
run: |
sudo apt-get -qqy update && sudo apt-get -qqy install rpm
- name: Docker Login
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PASSWD }}

- name: Deploy Autotag Release
# TODO(vtopc): switch to the `goreleaser/goreleaser-action` GHA?
run: |
curl -sL https://git.io/goreleaser | bash -s -- --parallelism=2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# release:
# permissions:
# # allow goreleaser to access the Releases API
# contents: write
# # Checks if this is a merge into the master(main) and creates a new release if yes.
# if: github.event_name != 'pull_request'
# needs: [test, lint, goreleaser-check]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0

# - name: Restore Go Modules Cache
# uses: actions/cache@v2
# with:
# path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-

# - name: Build binary
# run: |
# make build
# chmod +x ./autotag/autotag

# - name: Autotag Merge Commit
# # TODO: replace this with GitHub Action after #41
# run: |
# ./autotag/autotag

# echo "tags:" && git tag -l

# - name: Install rpm
# run: |
# sudo apt-get -qqy update && sudo apt-get -qqy install rpm

# - name: Docker Login
# uses: docker/login-action@v1
# with:
# registry: quay.io
# username: ${{ secrets.QUAY_USER }}
# password: ${{ secrets.QUAY_PASSWD }}

# - name: Deploy Autotag Release
# # TODO(vtopc): switch to the `goreleaser/goreleaser-action` GHA?
# run: |
# curl -sL https://git.io/goreleaser | bash -s -- --parallelism=2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 422ead4

Please sign in to comment.