blob: 40b0033bc52f2c799075067d13c2a91d0559037e (
plain)
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: Build and Release
on:
push:
tags:
- 'v*' # Trigger the workflow when a tag starting with 'v' is pushed (e.g., v1.0.0)
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Deno
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31
with:
deno-version: 'v2.0.6' # specify the version of Deno you want to use
- name: Install modulesdsafdasf
run: deno install
- name: Make shell script executable
run: chmod +x ./buildall.sh
- name: Run buildall.sh
run: ./buildall.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: compressed-files
path: build/compressed/* # Upload the files in the build/compressed directory
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: build/compressed/* # Upload the files to the GitHub release
name: ${{ github.ref }} # Use the pushed tag as the release version
release_name: Release ${{ github.ref }}
body: "Automated release for version ${{ github.ref }}"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # Use the personal access token here
|