Browse Source

build_dir fix2

pull/125/head
inv2004 4 years ago
parent
commit
2a9be0cee6
  1. 10
      .github/workflows/build.yml

10
.github/workflows/build.yml

@ -13,12 +13,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build 5.x - name: Build 5.x
env:
BUILD_DIR: Sophia-ps5-${{ github.ref }}
SOURCE_NAME: ${{ github.ref }} -replace ‘refs/\w+/’, ‘’
SOURCE_BRANCH: ${{ github.ref }} -replace ‘refs/heads/’, ‘’
SOURCE_TAG: ${{ github.ref }} -replace ‘refs/tags/’, ‘’
run: | run: |
if ($env:GITHUB_REF -eq "refs/heads/master") {
BUILD_DIR = "master"
} else {
BUILD_DIR = ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’
}
Get-ChildItem Env: Get-ChildItem Env:
mkdir $BUILD_DIR mkdir $BUILD_DIR
cp -R Sophia/* $BUILD_DIR cp -R Sophia/* $BUILD_DIR

Loading…
Cancel
Save