fix: 1. footer error 2. delete unnecessary config #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pages | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Upload Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./public | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: https://stan370.github.io/ | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print environment variables | |
run: printenv | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
# DEPLOYMENT_KEY: ${{ secrets.DEPLOYMENT_KEY }} | |
# Temporarily skip Docker and Kubernetes deployment steps | |
# TOD: dockerfile | |
# docker: | |
# runs-on: ubuntu-latest | |
# needs: build | |
# steps: | |
# - uses: actions/checkout@v3 | |
# # Set up Docker Buildx | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v2 | |
# # Log in to Docker Hub | |
# - name: Log in to Docker Hub | |
# uses: docker/login-action@v2 | |
# with: | |
# username: ${{ secrets.DOCKER_USERNAME }} | |
# password: ${{ secrets.DOCKER_PASSWORD }} | |
# # Build and Push Docker Image | |
# - name: Build and Push Docker Image | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: . | |
# push: true | |
# tags: username/repository:latest | |
# deploy_kubernetes: | |
# needs: docker | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Set up Kubernetes | |
# uses: azure/setup-kubectl@v2 | |
# with: | |
# version: 'latest' | |
# - name: Deploy to Kubernetes | |
# run: | | |
# kubectl apply -f deployment.yaml | |
# kubectl set image deployment/flask-app flask-app=username/repository:latest |