Skip to content

Commit

Permalink
ci: [skip ci] Adding assets upload when releasing
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Jul 11, 2021
1 parent 2e5fba1 commit f7f70dd
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/tag.yaml → .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Tag
name: Release

on:
push:
tags:
- "*"
release:
types:
- released

env:
SCRIPTS_NO_INTERACTIVE: "true"
Expand All @@ -15,12 +15,25 @@ defaults:

jobs:
tag:
name: Tag
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Tag
- name: Setup Golang
uses: actions/setup-go@v2
with:
go-version: "^1.16"
- name: Build
run: make init
- name: Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "release"
export GIT_TAG="$(basename ${{ github.ref }})"
scripts/release build assets clean
- name: Docker
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
Expand Down

0 comments on commit f7f70dd

Please sign in to comment.