Skip to content

Commit

Permalink
new ci/cd because of UI cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoder committed Feb 24, 2024
1 parent b820e97 commit 6f4328d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
java-version: "17"
distribution: "adopt"
- name: Build with Maven
run: |
cd java
Expand All @@ -55,9 +55,9 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log('environment', process.versions);
const fs = require('fs').promises;
const { repo: { owner, repo }, sha } = context;
console.log({ owner, repo, sha });
Expand Down Expand Up @@ -103,9 +103,9 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log('environment', process.versions);
const fs = require('fs').promises;
const { repo: { owner, repo }, sha } = context;
console.log({ owner, repo, sha });
Expand All @@ -131,7 +131,7 @@ jobs:
- name: Build webapp
run: |
export NODE_OPTIONS=--openssl-legacy-provider
cd web/1016/lora-package
cd web/lora-package
npm install --force
npm run build
cd dist/apps/sag-ps-iot-pkg-lora-package
Expand All @@ -144,9 +144,9 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log('environment', process.versions);
const fs = require('fs').promises;
const { repo: { owner, repo }, sha } = context;
console.log({ owner, repo, sha });
Expand All @@ -155,7 +155,7 @@ jobs:
release_id: process.env.RELEASE_ID,
name: 'sag-ps-iot-pkg-lora-package.zip',
data: await fs.readFile('web/1016/lora-package/dist/apps/sag-ps-iot-pkg-lora-package/sag-ps-iot-pkg-lora-package.zip')
});
});
clean_up_if_failure:
runs-on: ubuntu-latest
needs: [java_build, node_build, web_build]
Expand All @@ -167,9 +167,9 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log('environment', process.versions);
const fs = require('fs').promises;
const { repo: { owner, repo }, sha } = context;
console.log({ owner, repo, sha });
Expand Down

0 comments on commit 6f4328d

Please sign in to comment.