-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish nighlty builds on push to main only
* Remove pr-comment workflow * Run goreleaser --snapshot on pr and push * Update readme
- Loading branch information
1 parent
dba613b
commit 537cd2b
Showing
4 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,23 @@ jobs: | |
- name: Test | ||
run: go test ./... | ||
|
||
nightly: | ||
uses: charmbracelet/meta/.github/workflows/nightly.yml@main | ||
secrets: | ||
docker_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
docker_token: ${{ secrets.DOCKERHUB_TOKEN }} | ||
goreleaser_key: ${{ secrets.GORELEASER_KEY }} | ||
goreleaser: | ||
env: | ||
GO111MODULE: "on" | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "~1.17" | ||
- uses: actions/checkout@v2 | ||
- uses: anchore/sbom-action/[email protected] | ||
- uses: docker/setup-qemu-action@v1 | ||
- uses: docker/setup-buildx-action@v1 | ||
- uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser-pro | ||
version: latest | ||
args: --snapshot --skip-sign | ||
env: | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
This comment has been minimized.
Sorry, something went wrong. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: nightly | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
nightly: | ||
uses: charmbracelet/meta/.github/workflows/nightly.yml@main | ||
secrets: | ||
docker_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
docker_token: ${{ secrets.DOCKERHUB_TOKEN }} | ||
goreleaser_key: ${{ secrets.GORELEASER_KEY }} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Wouldn't this fail for pull requests, as the secret is not available for forks?