Commit c0d3fa21 authored by Roberto Sora's avatar Roberto Sora

[skip changelog] Add release workflow to github actions (#389)

* add release workflow to github actions

* fix string

* remove .drone.yml file
parent 4bd39462
---
kind: pipeline
name: release
steps:
- name: fetch
# extra step needed to fetch tags after cloning
image: docker:git
commands:
- git fetch --tags
- name: release
image: arduino/arduino-cli:builder-0.1
environment:
GITHUB_TOKEN:
from_secret: github_token
AWS_ACCESS_KEY_ID:
from_secret: downloads_drone_io_aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: downloads_drone_io_aws_secret_access_key
AWS_DEFAULT_REGION: 'us-east-1'
commands:
- goreleaser
trigger:
event:
# releases are triggered by tags only
- tag
status:
# skip the release if the previous build failed
- success
ref:
exclude:
# exclude the tags used to build Docker images for drone
- refs/tags/builder-*
- refs/tags/drone-*
- refs/tags/nightly
depends_on:
- test
name: release
on:
push:
tags:
- '[0-9].[0-9].[0-9]*'
jobs:
publish-release:
runs-on: ubuntu-latest
container:
image: arduino/arduino-cli:builder-0.1
volumes:
# cache go dependencies across pipeline's steps
- $PWD/go:/go
steps:
- name: checkout
uses: actions/checkout@v1
- name: build
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'us-east-1'
run: goreleaser
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment