Skip to content

fix(deps): update all dependencies (#1464) #1241

fix(deps): update all dependencies (#1464)

fix(deps): update all dependencies (#1464) #1241

Workflow file for this run

name: Deploy to GitHub Pages
on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branchโ€™s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
permissions:
actions: read
contents: write
pages: write
id-token: write
pull-requests: write
repository-projects: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
FORMSPREE: ${{ secrets.FORMSPREE }}
PBOT_GITHUB_TOKEN: ${{ secrets.PBOT_GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- name: ๐Ÿ” PBOT_GITHUB_TOKEN
if: env.PBOT_GITHUB_TOKEN == ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "PBOT_GITHUB_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV
- name: ๐Ÿš€ ๐ŸŸฃ Release to GitHub
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ env.PBOT_GITHUB_TOKEN }}
- name: Install, build, and upload your site
uses: withastro/action@v3
with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
package-manager: [email protected] # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
env:
FORMSPREE: ${{ secrets.FORMSPREE }}
outputs:
revnumber: ${{ env.revnumber }}
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
env:
FORMSPREE: ${{ secrets.FORMSPREE }}
deploy-container-image:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ env.PBOT_GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@d31acd50653ded455ab8972a1eb9a656b0aef94a
with:
images: |
n4t5u/yacosta738.github.io
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
latest
${{ github.sha }}
${{ github.sha }}-${{ github.run_number }}
labels: |
org.opencontainers.image.source= ${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.run_id }}
org.opencontainers.image.authors=${{ github.actor }}
- name: Build the container image
run: pnpm run build # build:docker
- name: Build and push Docker image
uses: docker/build-push-action@5e99dacf67635c4f273e532b9266ddb609b3025a
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}