Skip to content

Commit

Permalink
Deploy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Aug 28, 2024
1 parent ca4fbac commit e65adf3
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 38 deletions.
58 changes: 23 additions & 35 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,39 @@
name: Publish to GitHub pages
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:
contents: write
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
Github-Pages-Release:
timeout-minutes: 10

build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- uses: pnpm/action-setup@v4
with:
version: 8

- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Setup GitHub Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./dist"

- name: Deploy to GitHub Pages 🚀
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
uses: actions/deploy-pages@v4
7 changes: 5 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site: "https://rigidity.github.io",
base: "chia-encoder-util",
});
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.6"
"astro": "^4.14.6",
"bech32": "^2.0.0",
"chia-bls": "^1.0.2"
}
}
94 changes: 94 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e65adf3

Please sign in to comment.