This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
multi-package API #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is only meant for the source mod you shouldn't bring it into your own project | |
name: Release latest starter and migration packages | |
on: | |
push: | |
branches: [ master, main ] | |
jobs: | |
zip-and-release-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set release version | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Prepare release folder | |
run: | | |
mkdir packages | |
- name: Zip starter | |
uses: montudor/action-zip@v1 | |
with: | |
args: > | |
zip -r packages/starter.zip . \ | |
\ | |
-x "*.git/*" \ | |
\ | |
-x ".github/workflows/release-packages-latest.yml" \ | |
-x ".github/workflows/release-packages-tags.yml" \ | |
\ | |
-x "*docs/*" \ | |
-x "README.md" \ | |
-x "LICENSE" \ | |
\ | |
-x "packages/starter.zip" \ | |
-x "packages/migration.zip" \ | |
-x "packages" \ | |
-x "blobs/*" | |
- name: Zip migration | |
uses: montudor/action-zip@v1 | |
with: | |
args: > | |
zip -r packages/migration.zip . \ | |
\ | |
-x "*.git/*" \ | |
\ | |
-x ".github/workflows/release-packages-latest.yml" \ | |
-x ".github/workflows/release-packages-tags.yml" \ | |
\ | |
-x "*docs/*" \ | |
-x "*src/*" \ | |
-x "LICENSE" \ | |
-x "README.md" \ | |
\ | |
-x "packages/starter.zip" \ | |
-x "packages/migration.zip" \ | |
-x "packages" \ | |
-x "blobs/*" | |
- name: Update latest tag | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest-packages" | |
prerelease: false | |
title: "Latest starter and migration packages" | |
files: packages/* |