Skip to content

Commit

Permalink
chore: move app to continuous release
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Feb 23, 2024
1 parent 8de27e2 commit 5b37f2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 28 deletions.
35 changes: 9 additions & 26 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,42 +150,25 @@ jobs:
# SERVER_START_CMD: 'yarn start'
# SERVER_URL: 'http://localhost:3000'

publish:
release:
runs-on: ubuntu-latest
needs: [build, lint, test] # add e2e if you use it
if: "!contains(github.event.head_commit.message, '[skip ci]')"
needs: [build,lint,test]
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
token: ${{env.GH_TOKEN}}

- uses: actions/setup-node@v1
- uses: dhis2/action-semantic-release@master
with:
node-version: 16.x

- uses: actions/download-artifact@v2
with:
name: app-build
publish-apphub: true
publish-github: true
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
apphub-token: ${{ secrets.DHIS2_BOT_APPHUB_TOKEN }}

- uses: dhis2/deploy-build@master
with:
# uncomment following line for monorepo apps:
#cwd: ./packages/app
build-dir: build/app
github-token: ${{ env.GH_TOKEN }}

release:
runs-on: ubuntu-latest
needs: [publish]
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
token: ${{env.GH_TOKEN}}

- uses: actions/setup-node@v1
with:
node-version: 16.x

- name: Publish release to GitHub
run: npx @dhis2/cli-utils release
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion d2.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const config = {
id: '275afdce-16d2-40e1-8a9b-5b22d882ed74',
type: 'app',
name: 'import-export',
title: 'Import/Export',
description: 'Core app for importing and exporting data to and from DHIS2.',
coreApp: true,

minDHIS2Version: '2.41',
entryPoints: {
app: './src/App.js',
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "import-export-app",
"version": "1.5.69",
"version": "99.9.9",
"description": "",
"license": "BSD-3-Clause",
"private": true,
Expand Down

0 comments on commit 5b37f2f

Please sign in to comment.