Files
Postea/.github/workflows/repository-specific.yml
T

77 lines
2.2 KiB
YAML

# This workflow only meant for the source mod you shouldn't bring it into your own project
name: Buildscript update CI
on:
push:
branches: [ master, main, buildscript-versioning-and-migration-zip ] # todo: remove temporary test branch from here
pull_request:
branches: [ master, main ]
jobs:
buildscript-maintenece:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Ensure build script version is updated
run: .github/scripts/update-version.sh
zip-packages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Zip starter
uses: montudor/action-zip@v1
with:
args: >
zip -r starter.zip . \
\
-x "*.git/*" \
\
-x ".github/scripts/update-version.sh" \
-x ".github/workflows/repository-specific.yml" \
\
-x "*docs/*" \
-x "LICENSE" \
-x "README.md"
- name: Publish starter package
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-starer"
prerelease: true
title: "Latest starter package"
files: "starter.zip"
- name: Zip migration
uses: montudor/action-zip@v1
with:
args: >
zip -r migration.zip . \
\
-x "*.git/*" \
\
-x ".github/scripts/update-version.sh" \
-x ".github/workflows/repository-specific.yml" \
\
-x "*docs/*" \
-x "*src/*" \
-x "LICENSE" \
-x "README.md"
- name: Publish migration package
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-starer"
prerelease: true
title: "Latest migration package"
files: "migration.zip"