+13
.github/FUNDING.yml
+13
.github/FUNDING.yml
···
1
+
# These are supported funding model platforms
2
+
3
+
github: [hayleigh-dot-dev]
4
+
patreon: # Replace with a single Patreon username
5
+
open_collective: # Replace with a single Open Collective username
6
+
ko_fi: # Replace with a single Ko-fi username
7
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+
liberapay: # Replace with a single Liberapay username
10
+
issuehunt: # Replace with a single IssueHunt username
11
+
otechie: # Replace with a single Otechie username
12
+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+32
.github/workflows/release.yml
+32
.github/workflows/release.yml
···
1
+
name: release
2
+
3
+
on:
4
+
push:
5
+
tags: ["v*"]
6
+
7
+
jobs:
8
+
build:
9
+
runs-on: ubuntu-latest
10
+
steps:
11
+
- uses: actions/checkout@v3.1.0
12
+
- uses: erlef/setup-beam@v1.16.0
13
+
with:
14
+
otp-version: "26.0.2"
15
+
rebar3-version: "3"
16
+
gleam-version: "1.3.2"
17
+
18
+
- run: cargo install tomlq
19
+
- run: |
20
+
if [ "v$(tomlq version -f gleam.toml)" == "${{ github.ref_name }}" ]; then
21
+
exit 0
22
+
fi
23
+
echo "tag does not match version in gleam.toml, refusing to publish"
24
+
exit 1
25
+
- run: gleam format --check src test
26
+
- run: gleam test
27
+
- run: gleam publish -y
28
+
env:
29
+
HEXPM_USER: ${{ secrets.HEX_USERNAME }}
30
+
HEXPM_PASS: ${{ secrets.HEX_PASSWORD }}
31
+
32
+
- uses: softprops/action-gh-release@v1