-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 909 Bytes
/
deno.yaml
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
# .github/workflows/deno.yaml
# Copyright 2023 Keith Maxwell
# SPDX-License-Identifier: CC0-1.0
name: Build with deno compile; publish for a tag
on: push # yamllint disable-line rule:truthy
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- { uses: denoland/setup-deno@v1, with: { deno-version: v1.x } }
- run: deno fmt --check
- run: deno lint
- run: >-
deno compile
--allow-env
--allow-read
--allow-write
--allow-run
--allow-net
a4.js
- run: sha256sum a4 | tee SHA256SUMS
- uses: actions/upload-artifact@v4
with:
name: a4
path: |
a4
SHA256SUMS
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
a4
SHA256SUMS