-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (46 loc) · 1.7 KB
/
ExperimentalRelease.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
54
55
56
57
58
name: Experimental Release
on:
workflow_dispatch:
push:
branches: [main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
WOLFRAMSCRIPT_ENTITLEMENTID: ${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }}
WOLFRAM_SYSTEM_ID: Linux-x86-64
GH_INSTALL_URL: https://github.com/cli/cli/releases/download/v2.33.0/gh_2.33.0_linux_amd64.deb
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Build:
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: wolframresearch/wolframengine:14.1
options: --user root
steps:
- name: Update Git
run: |
apt-get update && apt-get install software-properties-common -y
add-apt-repository ppa:git-core/ppa -y
apt-get update && apt-get install git -y
wget ${{ env.GH_INSTALL_URL }} -O gh.deb
dpkg -i gh.deb
- name: Checkout
uses: actions/checkout@v4
- name: Build Paclet
run: wolframscript -f Scripts/BuildPaclet.wls
- name: Rename Paclet File
run: mv "${{ env.PACLET_PATH }}" "${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet"
- name: Update Release
run: |
git config --global --add safe.directory $(pwd)
if gh release view experimental; then
gh release delete experimental --cleanup-tag --yes --repo="${{ env.GITHUB_REPOSITORY }}"
fi
gh release create experimental "${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet" \
--target="${{ github.ref }}" \
--repo="${{ env.GITHUB_REPOSITORY }}" \
--title="Experimental Release" \
--notes="This is an experimental release that's always updated with the latest build from the main branch." \
--prerelease