Use upstream deploy scripts in CI
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
|
||||
name: Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
inputs:
|
||||
ref:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
env:
|
||||
CI_DIR: 717a3c49-f5dc-42eb-b332-fcf2988d00e3
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||
with:
|
||||
ref: ${{ inputs.ref }}
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a # v3.0.3
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
|
||||
- name: Run deploy script
|
||||
run: |
|
||||
set -e
|
||||
shopt -s globstar nullglob
|
||||
shopt -u dotglob
|
||||
cd Deploy
|
||||
git apply < ./patches/disable-interactivity.diff
|
||||
git apply < ./patches/prevent-crash-on-missing-dir.diff
|
||||
./DeployAll.sh
|
||||
|
||||
- name: Create tarball
|
||||
run: |
|
||||
mkdir -p "$CI_DIR"
|
||||
tar -czf "$CI_DIR/build.tar.gz" -C Deploy/bin/content .
|
||||
|
||||
- name: Upload tarball
|
||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
with:
|
||||
name: build
|
||||
path: ${{ env.CI_DIR }}/build.tar.gz
|
||||
Reference in New Issue
Block a user