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 <[email protected]>
  • Loading branch information
ViBiOh committed Jul 11, 2021
1 parent c50671d commit b637bd7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 29 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Release

on:
release:
types:
- released

env:
SCRIPTS_NO_INTERACTIVE: 'true'

defaults:
run:
shell: bash

jobs:
tag:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- 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 }}
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "docker_promote"
scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version)" "$(basename ${{ github.ref }})"
29 changes: 0 additions & 29 deletions .github/workflows/tag.yaml

This file was deleted.

0 comments on commit b637bd7

Please sign in to comment.