mirror of
https://github.com/godotengine/godot-docs-project-starters.git
synced 2026-09-03 23:33:31 +03:00
Add CI workflow to build releases
This commit is contained in:
33
.github/workflows/build-dist.yml
vendored
Normal file
33
.github/workflows/build-dist.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build ZIP archives
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Generate ZIP archives for project starts and assets and upload them as a release
|
||||
runs-on: ubuntu-20.04
|
||||
env:
|
||||
release_tag: 'latest-4.x'
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get -qq update
|
||||
sudo apt-get -qq install zip unzip
|
||||
|
||||
- name: Create ZIPs
|
||||
run: |
|
||||
mkdir ./.build
|
||||
find ./src -mindepth 1 -maxdepth 1 -type d -execdir zip -r '../.build/{}.zip' '{}' \;
|
||||
|
||||
- name: Publish archives as a '${{ env.release_tag }}' draft release
|
||||
run: gh release upload --clobber ${{ env.release_tag }} ./build/*
|
||||
|
||||
- name: Push tag '${{ env.release_tag }}' forward
|
||||
run: |
|
||||
git tag ${{ env.release_tag }}
|
||||
git push origin +${{ env.release_tag }}
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,3 +1,8 @@
|
||||
# Project's build folder
|
||||
.build/
|
||||
|
||||
### Extra ignores
|
||||
|
||||
# macOS system files
|
||||
.DS_Store
|
||||
__MACOSX
|
||||
|
||||
Reference in New Issue
Block a user