AntCMS/.github/workflows/preview.yml

36 lines
1 KiB
YAML
Raw Normal View History

2023-01-07 10:20:02 +00:00
name: Publish a Release Preview
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
2023-01-07 10:20:02 +00:00
- uses: php-actions/composer@v6
with:
2023-01-07 19:11:10 +00:00
dev: no
php_version: "8.0"
2023-01-07 10:20:02 +00:00
- run: |
sudo apt-get install zip -y
2023-01-07 21:42:55 +00:00
zip -r AntCMS.zip .
2023-01-07 22:09:01 +00:00
working-directory: ./src
- run: |
npm install -D tailwindcss
rm -f ./src/Themes/Default/Assets/Dist/tailwind.css
npx tailwindcss -i ./src/Themes/Default/Assets/tailwind.css -o ./src/Themes/Default/Assets/Dist/tailwind.css --minify
2023-01-07 10:20:02 +00:00
- uses: ncipollo/release-action@v1
with:
2023-01-07 21:42:55 +00:00
artifacts: "./src/AntCMS.zip"
2023-01-07 10:20:02 +00:00
prerelease: true
allowUpdates: true
artifactErrorsFailBuild: true
generateReleaseNotes: true
name: "Preview Build"
2023-01-07 10:26:34 +00:00
tag: "latest-preview"
2023-01-07 19:11:10 +00:00
body: "A rolling preview release of AntCMS that is updated with each commit."