Skip to content

Commit

Permalink
publish package on master
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavenoface committed Nov 15, 2023
1 parent e9ac804 commit 3f0e130
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/gopackagespub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build master and publish binaries
on:
push:
branches:
- master

env:
# go needs absolute directories, using the $HOME variable doesn't work here.
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
GO_VERSION: 1.21.4

jobs:
hehe:
name: Build master
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Check out source
uses: actions/checkout@v2

- name: Detect env
id: detect
shell: bash
run: |
echo "sha8=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_OUTPUT
echo "release-title=${Development Build: $(echo ${{ github.sha }} | cut -c1-8)}" >> $GITHUB_OUTPUT
- name: Build
run: ./release/release.sh ${{ steps.detect.outputs.sha8 }}

- name: Publish
uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0
with:
repo_token: ${{ github.token }}
automatic_release_tag: master
prerelease: true
title: "${{ steps.detect.outputs.release-title }}"
files: ppcd-${{ steps.detect.outputs.sha8 }}/*

0 comments on commit 3f0e130

Please sign in to comment.