use reusable workflow for test and release #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- v*.*.* | |
# workflow_dispatch: | |
# inputs: | |
# ERLANG_VERSION: | |
# description: erlang/otp version | |
# required: true | |
# REBAR3_VERSION: | |
# description: rebar3 version | |
# required: true | |
# GLEAM_VERSION: | |
# description: gleam version | |
# required: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: ./test.yml | |
release-gh: | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
# release-hex: | |
# runs-on: ubuntu-latest | |
# environment: publish | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions/cache/restore@v4 | |
# with: | |
# path: ./build/packages | |
# key: deps-${{ hashFiles('manifest.toml') }} | |
# - uses: erlef/setup-beam@v1 | |
# with: | |
# otp-version: ${{inputs.ERLANG_VERSION}} | |
# rebar3-version: ${{inputs.REBAR3_VERSION}} | |
# gleam-version: ${{inputs.GLEAM_VERSION}} | |
# - name: publish to hex | |
# env: | |
# HEXPM_USER: ${{ secrets.HEXPM_USER }} | |
# HEXPM_PASS: ${{ secrets.HEXPM_PASS }} | |
# run: gleam publish -y |