-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: new github workflow that copies build of all non-prod branches…
… to d2-ci (#1676) Every branch that is not listed as one of the prod branches (from node-publish.yml) will now have it's build pushed to d2-ci for every pushed commit. We can then use these builds during development and testing. Changes to README *remove build badges for versions that are no longer supported *add docs about how to use the build New gh workflow file after building the lib, use yarn pack to create the correct structure of the packaged lib. Then unzip the result and push that to d2-ci, which can then be installed by the consuming apps.
- Loading branch information
1 parent
9aaef58
commit f145542
Showing
2 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Copy build to d2-ci | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- next | ||
- next-major | ||
- alpha | ||
- beta | ||
- '[0-9]+.x' | ||
- '[0-9]+.x.x' | ||
- '[0-9]+.[0-9]+.x' | ||
|
||
env: | ||
GH_TOKEN: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}} | ||
|
||
jobs: | ||
copy-to-d2-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{env.GH_TOKEN}} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.x' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build package | ||
run: yarn build | ||
|
||
- name: Pack and unpack the build to a directory named 'package' | ||
run: yarn pack --filename output.tgz && tar -xzf output.tgz | ||
|
||
- name: Copy package to d2-ci | ||
uses: dhis2/deploy-build@master | ||
with: | ||
build-dir: package | ||
github-token: ${{env.GH_TOKEN}} |
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