Skip to content

Commit

Permalink
update workflows and fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosttveit committed Dec 18, 2023
1 parent 8ddf16b commit b39f592
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
"on":
push:
branches:
- main
Expand All @@ -11,27 +11,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: cd functions && npm ci
- name: Deploy to Firebase
- name: Deploy functions
uses: w9jds/firebase-action@master
with:
args: deploy --only functions,firestore,storage
args: deploy --only functions,firestore,storage
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FONDET }}

build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: cd web && npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Deploy hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FONDET }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FONDET }}"
channelId: live
projectId: fondet
11 changes: 4 additions & 7 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
"on": pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: cd web && npm ci && npm run build:staging
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FONDET }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FONDET }}"
projectId: fondet
6 changes: 3 additions & 3 deletions web/src/views/Apply/Apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ const Apply: React.FunctionComponent = () => {
<Typography variant='h2'>Før du søker</Typography>
<Typography variant='body1'>
Det finnes et utall forskjellige støtteordninger som administreres av ulike organisasjoner. Vi ber deg derfor sette deg inn i hvilke andre
støtteordninger som finnes, og søke der det kan være muligheter før du søker støtte fra TIHLDE-fondet. Oversikten over andre plasser kan finnes {' '}
støtteordninger som finnes, og søke der det kan være muligheter før du søker støtte fra TIHLDE-fondet. Oversikten over andre plasser kan finnes{' '}
<Link href='https://tihlde.org/wiki/sknader/sk-midler-eksternt/' target='_blank'>
her
</Link>{' '}
. Dersom du ikke får støtte andre steder, eller ditt initiativ ikke rimelig kan dekkes av noen andre
støtteordninger er du velkommen til å søke støtte fra oss.
. Dersom du ikke får støtte andre steder, eller ditt initiativ ikke rimelig kan dekkes av noen andre støtteordninger er du velkommen til å søke støtte
fra oss.
</Typography>
<Typography variant='h2'>Hvordan søke om støtte</Typography>
<Typography variant='body1' component='div'>
Expand Down

0 comments on commit b39f592

Please sign in to comment.