Skip to content

Commit

Permalink
Publish nighlty builds on push to main only
Browse files Browse the repository at this point in the history
* Remove pr-comment workflow
* Run goreleaser --snapshot on pr and push
* Update readme
  • Loading branch information
aymanbagabas committed Jan 19, 2022
1 parent dba613b commit 537cd2b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 17 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@muesli

muesli Jan 20, 2022

Contributor

Wouldn't this fail for pull requests, as the secret is not available for forks?

14 changes: 14 additions & 0 deletions .github/workflows/nightly.yml
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 }}
10 changes: 0 additions & 10 deletions .github/workflows/pr-comment.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Soft Serve
</picture><br>
<a href="https://github.com/charmbracelet/soft-serve/releases"><img src="https://img.shields.io/github/release/charmbracelet/soft-serve.svg" alt="Latest Release"></a>
<a href="https://github.com/charmbracelet/soft-serve/actions"><img src="https://github.com/charmbracelet/soft-serve/workflows/build/badge.svg" alt="Build Status"></a>
<a href="https://nightly.link/charmbracelet/soft-serve/workflows/build/main"><img src="https://shields.io/badge/-Nightly%20Builds-orange?logo=hackthebox&logoColor=fff&style=appveyor"/></a>
<a href="https://nightly.link/charmbracelet/soft-serve/workflows/nightly/main"><img src="https://shields.io/badge/-Nightly%20Builds-orange?logo=hackthebox&logoColor=fff&style=appveyor"/></a>
</p>

A tasty, self-hostable Git server for the command line. 🍦
Expand Down

0 comments on commit 537cd2b

Please sign in to comment.