Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release booty binaries + install script that you can curl (see https://github.com/getcouragenow/main/issues/109) #22

Merged
merged 34 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
096dfff
trying to build and upload assets to release
AppliNH Jan 26, 2021
ec7735e
fixing file
AppliNH Jan 26, 2021
4a99044
dist not found trying to fix
AppliNH Jan 26, 2021
2ef88b7
reducing to ubuntu only for debug
AppliNH Jan 26, 2021
696581d
trying to upload with diff action
AppliNH Jan 26, 2021
ea76be9
typo
AppliNH Jan 26, 2021
bff27f3
typo
AppliNH Jan 26, 2021
d80e5bf
typo again ffs
AppliNH Jan 26, 2021
ba3dec0
trying to get sha from env
AppliNH Jan 26, 2021
0c947cd
another way
AppliNH Jan 26, 2021
962a20f
using something else to release artifacts
AppliNH Jan 26, 2021
2e2e37e
removing the compress env
AppliNH Jan 26, 2021
b043c8e
create release then upload from different machines
AppliNH Jan 26, 2021
66826c8
used dep is not compatible on windows/macos
AppliNH Jan 26, 2021
189fdc3
trying to share artifacts between jobs
AppliNH Jan 26, 2021
085889c
changing artifact name cuz not compatible
AppliNH Jan 26, 2021
0bc2132
getting the artifacts from the other jobs as well +
AppliNH Jan 26, 2021
444e430
artifacts don't seem to be retrieved correctly..
AppliNH Jan 26, 2021
40cbb35
we eventually only need ubuntu, so let's go
AppliNH Jan 26, 2021
c8a8c9b
testing install curl
AppliNH Jan 26, 2021
d5f3b7b
trying release with goreleaser
AppliNH Jan 26, 2021
b0441e0
wrong way oops
AppliNH Jan 26, 2021
03b1a01
typo
AppliNH Jan 26, 2021
dbfb2e1
adding token
AppliNH Jan 26, 2021
0285850
fix mk
AppliNH Jan 26, 2021
91c5baf
fix mk again
AppliNH Jan 26, 2021
3f1d221
changing repl so chang artif name
AppliNH Jan 26, 2021
469b2f1
install script ready but hash_sha256_verify fails
AppliNH Jan 26, 2021
ffb3cd0
trying to use go downloader, install in mk
AppliNH Jan 26, 2021
53e1c8e
revert godl
AppliNH Jan 27, 2021
ad46349
changed owner
AppliNH Jan 27, 2021
df3c430
trigger on push tag beggining with v
AppliNH Jan 27, 2021
3e8c9c3
fixing makefile an d targets
AppliNH Jan 27, 2021
5738c9c
More mk modif
AppliNH Jan 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [1.15.6]
target: ["all"]
target: ["all-ci"]

runs-on: ${{ matrix.os }}

Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
on:
push:
tags:
- 'v*'

name: Upload Release Asset


jobs:
create_release:
name: Create Release
runs-on: ubuntu-16.04
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

create_and_upload_release_assets:
name: Create and Upload Release Assets
needs: create_release
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #[ubuntu-latest, macos-latest, windows-latest]
go-version: [1.15.6]
target: ["all-release"]

runs-on: ${{ matrix.os }}

steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go

- name: Setup Go binary path
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- name: Git line endings
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Check out THIS code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}

- name: make ${{ matrix.target }}
shell: bash
run: |
# workaround for https://github.com/actions/setup-go/issues/14
#export GOPATH=${GITHUB_WORKSPACE}/go
#export PATH=$PATH:$GOPATH/bin
make $target
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
env:
target: ${{ matrix.target }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Release
# uses: fnkr/github-action-ghr@v1
# env:
# GHR_PATH: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}/example/dist/
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion example/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ archives:
linux: Linux
windows: Windows
386: i386
amd64: x86_64
#amd64: x86_64
checksum:
name_template: 'checksums.txt'
10 changes: 8 additions & 2 deletions example/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
BOOTY_FSPATH=./..
include $(BOOTY_FSPATH)/*.mk

all: print dep build release
all: print dep build

all-ci : all release-ci

all-release: all release

print:
@echo -- OS --
Expand All @@ -18,12 +22,14 @@ build:
cd ./go/cmd/cli && go build .
cd ./go/cmd/server && go build .

release:
release-ci:
#git tag -a $(VERSION) -m "Release" || true
#git push origin $(VERSION)
#goreleaser --rm-dist
goreleaser --rm-dist --skip-publish --snapshot

release:
goreleaser release


server-run:
Expand Down
Loading