-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (49 loc) · 1.25 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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