From 56075d6f2f9cc65dd8d62b50ddca072d3bc2c9f6 Mon Sep 17 00:00:00 2001 From: Akis <41871089+akisblack@users.noreply.github.com> Date: Tue, 7 May 2024 13:16:48 +0300 Subject: [PATCH] fix gh workflow --- .github/workflows/docker.yml | 34 ---------------------------------- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/docker.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index cce7b3c..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Docker - -on: - push: - branches: - - "master" - -jobs: - build: - name: "Build" - runs-on: ubuntu-latest - steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: "Build:checkout" - uses: actions/checkout@v3 - - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: akisblack - password: ${{ secrets.ACCESS_TOKEN }} - - - name: "Build:dockerimage" - uses: docker/build-push-action@v3 - with: - tags: ghcr.io/akisblack/website:latest - context: "." - push: true - no-cache: true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8d7a92a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Build and Deploy +on: + push: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2.3.1 + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | + npm install -g pnpm + pnpm i + pnpm build + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.1.4 + with: + branch: gh-pages # The branch the action should deploy to. + folder: dist # The folder the action should deploy. + commit-message: Deployed to GitHub Pages 🚀 + clean: true + single-commit: true