Skip to content

Commit

Permalink
add manual releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Nov 17, 2021
1 parent 828064e commit 3aca8c2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: manual release
on:
workflow_dispatch:

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0

- name: setup tools
run: |
mkdir ~/bin
curl -sL https://github.com/Songmu/goxz/releases/download/v0.4.1/goxz_v0.4.1_linux_amd64.tar.gz | tar zxvf - && install goxz_v0.4.1_linux_amd64/goxz ~/bin/
curl -sL https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz | tar zxvf - && install ghr_v0.13.0_linux_amd64/ghr ~/bin/
- name: dist
run: PATH=~/bin:$PATH make dist

- name: release
run: PATH=~/bin:$PATH make prerelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ dist:
release:
ghr -u fujiwara -r lambroll -n "$(GIT_VER)" $(GIT_VER) dist/

prerelease:
ghr -replace -u fujiwara -r lambroll -n "$(GIT_VER)" $(GIT_VER) dist/

orb/publish:
circleci orb validate circleci-orb.yml
circleci orb publish circleci-orb.yml $(ORB_NAMESPACE)/lambroll@dev:latest
Expand Down

0 comments on commit 3aca8c2

Please sign in to comment.