-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1.06 KB
/
preview.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
name: Publish a Release Preview
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install NPM packages and build frontend
run: |
npm i
npm run build
- uses: php-actions/composer@v6
with:
dev: no
php_version: "8.1"
args: "--optimize-autoloader"
- run: |
sudo apt-get install zip -y
sudo rm -rf ./Vendor/liborm85/composer-vendor-cleaner
zip -r AntCMS.zip .
working-directory: ./src
- uses: ncipollo/release-action@v1
with:
artifacts: "./src/AntCMS.zip"
prerelease: true
allowUpdates: true
artifactErrorsFailBuild: true
generateReleaseNotes: true
name: "Preview Build"
tag: "latest-preview"
body: "A rolling preview release of AntCMS that is updated with each commit."