mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-12 02:10:27 +00:00
Remove custom CI step for this branch
This commit is contained in:
parent
3b3879df03
commit
093274f0fa
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -4,7 +4,6 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- tiddlywiki-com
|
- tiddlywiki-com
|
||||||
- parameterised-transclusions
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "12"
|
NODE_VERSION: "12"
|
||||||
jobs:
|
jobs:
|
||||||
@ -16,37 +15,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE_VERSION }}"
|
node-version: "${{ env.NODE_VERSION }}"
|
||||||
- run: "./bin/test.sh"
|
- run: "./bin/test.sh"
|
||||||
build-parameterised-transclusions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.ref == 'refs/heads/parameterised-transclusions'
|
|
||||||
needs: test
|
|
||||||
env:
|
|
||||||
TW5_BUILD_TIDDLYWIKI: "./tiddlywiki.js"
|
|
||||||
TW5_BUILD_MAIN_EDITION: "./editions/prerelease"
|
|
||||||
TW5_BUILD_OUTPUT: "./output/prerelease/parameterised-transclusions"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: "${{ env.NODE_VERSION }}"
|
|
||||||
- run: "./bin/ci-pre-build.sh"
|
|
||||||
# There's another near-duplicate "Set dynamic environment variables" step in
|
|
||||||
# the `build-tiddlywiki-com` job.
|
|
||||||
# These _could_ be extracted as a script (or moved into `ci-pre-build.sh`) to do away with the
|
|
||||||
# duplication, but, the visibility that comes from having these in the workflow file seems
|
|
||||||
# valuable. Environment variables are global variables and setting them at the top-level
|
|
||||||
# makes sense.
|
|
||||||
# Time to reconsider this decision might be when this setup turns out to be mistake-prone.
|
|
||||||
- name: "Set dynamic environment variables"
|
|
||||||
run: |
|
|
||||||
TW5_BUILD_BRANCH=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
|
|
||||||
echo "TW5_BUILD_BRANCH=${TW5_BUILD_BRANCH}" >> $GITHUB_ENV
|
|
||||||
echo "TW5_BUILD_VERSION=$(./bin/get-plugin-library-version-number)" >> $GITHUB_ENV
|
|
||||||
echo "TW5_BUILD_DETAILS=Prerelease built from branch '$TW5_BUILD_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date +'%F %T %Z')" >> $GITHUB_ENV
|
|
||||||
- run: "./bin/build-site.sh"
|
|
||||||
- run: "./bin/ci-push.sh"
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUBPUSHTOKEN }}
|
|
||||||
build-prerelease:
|
build-prerelease:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
Loading…
Reference in New Issue
Block a user