From 9946784b984971d4238b099d6b432e6a06c99bdf Mon Sep 17 00:00:00 2001 From: Adw8 Date: Wed, 6 Nov 2024 10:40:01 +0530 Subject: [PATCH] Add workflow to deploy snowball frontend --- .gitea/workflows/deploy-frontend.yaml | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .gitea/workflows/deploy-frontend.yaml diff --git a/.gitea/workflows/deploy-frontend.yaml b/.gitea/workflows/deploy-frontend.yaml new file mode 100644 index 00000000..40cd5b6d --- /dev/null +++ b/.gitea/workflows/deploy-frontend.yaml @@ -0,0 +1,49 @@ +name: Deploy Snowball frontend + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Check out repository + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Download yarn + run: | + curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js + chmod +x /usr/local/bin/yarn + + - name: Set up environment + run: | + # Create a config file with necessary endpoints and placeholders for secrets + cat > packages/deployer/config.yml <