Skip to content

Commit

Permalink
chore: update app release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Oct 29, 2024
1 parent 45d3433 commit 2f72d24
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .github/actions/get-fusion-token/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ runs:
id: token
shell: bash
run: echo "token=$(az account get-access-token --resource '${{ inputs.resource-id }}' | jq '.accessToken')" >> $GITHUB_OUTPUT

- name: "Set Token as Environment Variable"
shell: bash
run: |
echo "FUSION_TOKEN=${{ steps.token.outputs.token }}" >> $GITHUB_ENV
17 changes: 5 additions & 12 deletions .github/workflows/common-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,25 +136,18 @@ jobs:
with:
node-version: "21"

- name: Install
- name: Install Global
run: |
cd client
yarn install
npm i -g @equinor/fusion-framework-cli
cd apps/portal-administration
yarn install
- name: Build
- name: Install
run: |
cd client
yarn build:apps
cd apps/portal-administration
yarn install
- name: Deploy
run: |
cd client/apps/portal-administration
yarn bundle
curl -T "app-bundle.zip" -H "Authorization: bearer ${{steps.get-fusion-token.outputs.token}}" -H "Content-Disposition: attachment; filename=app-bundle.zip" -H "Content-Type: application/zip" -X POST --show-error -i --url https://fusion-s-portal-fprd.azurewebsites.net/api/apps/portal-administration/versions
- name: Publish
run: |
curl -H "Authorization: bearer ${{steps.get-fusion-token.outputs.token}}" -X POST --show-error -i --url https://fusion-s-portal-fprd.azurewebsites.net/api/apps/portal-administration/publish
fusion-framework-cli app build-publish -e fprd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy apps CI
name: Deploy portal-administration CI

on:
push:
Expand Down Expand Up @@ -39,25 +39,18 @@ jobs:
with:
node-version: "21"

- name: Install
- name: Install Global
run: |
cd client
yarn install
npm i -g @equinor/fusion-framework-cli
cd apps/portal-administration
yarn install
- name: Build
- name: Install
run: |
cd client
yarn build:apps
cd apps/portal-administration
yarn install
- name: Deploy
run: |
cd client/apps/portal-administration
yarn bundle
curl -T "app-bundle.zip" -H "Authorization: bearer ${{steps.get-fusion-token.outputs.token}}" -H "Content-Disposition: attachment; filename=app-bundle.zip" -H "Content-Type: application/zip" -X POST --show-error -i --url https://fusion-s-portal-ci.azurewebsites.net/api/apps/portal-administration/versions
- name: Publish
run: |
curl -H "Authorization: bearer ${{steps.get-fusion-token.outputs.token}}" -X POST --show-error -i --url https://fusion-s-portal-ci.azurewebsites.net/api/apps/portal-administration/publish
fusion-framework-cli app build-publish -e ci

0 comments on commit 2f72d24

Please sign in to comment.