From 0b25aadb261ee3c062315603744e3b7b8de08a12 Mon Sep 17 00:00:00 2001 From: Stefan Pfaffel Date: Wed, 11 May 2022 13:14:45 +0200 Subject: [PATCH] chore: add deployment workflow --- .github/workflows/deploy.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ff2b688 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: deploys +on: + push: + branches: + - deploy + +jobs: + build: + timeout-minutes: 10 + runs-on: ubuntu-latest + + steps: + - name: Git checkout + uses: actions/checkout@master + + - name: Use Node.js lts/* + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run docs:build + + - name: Add version file + run: npm pkg get --json version name > docs/.vuepress/dist/_version.json + env: + NODE_ENV: production + + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DISCUE_IO_DOCS_ECD49 }}' + projectId: discue-io-docs-ecd49 + channelId: live