From 7cf4d099c700dc1fc5de3d4a1ef2edaeb5673e0d Mon Sep 17 00:00:00 2001 From: Fingertips Date: Sun, 19 Jan 2025 00:19:12 +0800 Subject: [PATCH] cd: add workflow for deployment - Added a GitHub Actions workflow to handle the deployment process. - Automates the deployment steps to streamline the release pipeline. - Ensures consistent and reliable deployments across environments. --- .github/workflows/deploy.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..316b9bc --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,23 @@ +name: Portfolio - Deploy + +on: + workflow_dispatch: + +jobs: + build: + name: Deploy Application + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Download Build Artifact + uses: actions/download-artifact@v4 + with: + name: dist + + - name: Deploy to GitHub Pages + run: | + npm install -g gh-pages + npm run deploy