diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..aefdafc95 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: CI +on: [push] +jobs: + FrontDeploy: + name: FrontDeploy + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@main + - name: setup Node + uses: actions/setup-node@v1 + with: + node-version: '18' + registry-url: 'https://registry.npmjs.org' + - name: Install Firebase CLI + run: npm install -g firebase-tools + - name: Install Dependencies + run: yarn + - name: Build + run: yarn build + - name: deploy to Firebase Hosting + shell: bash + run: yarn channel-deploy $(echo ${GITHUB_REF#refs/heads/}) --token=${{ secrets.FIREBASE_TOKEN }}