Skip to content

Commit

Permalink
add on all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Dec 14, 2024
1 parent 4f4dfb0 commit 86c79cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: gh-pages

on:
pull_request:
branches: [ "master" ]
branches:
- staging
- master
- prod
- 'feat/*'
workflow_dispatch:

permissions:
Expand All @@ -17,17 +21,18 @@ concurrency:

jobs:
build:
if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions.
if: ${{ github.repository == 'Villaquiranm/gno' }} # Alternatively, validate based on provided tokens and permissions.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: "cd misc/gendocs && make install gen"
- run: echo "GOROOT=$(go env GOROOT)" >> $GITHUB_ENV
- run: echo $GOROOT
- run: "cd misc/stdlib_diff && make install gen"
-run | # Combine files into a single directory for deployment
mkdir -p output/combined
- run: "cd misc/gendocs && make install gen"
- run: mkdir -p output/combined
cp -r ./misc/gendocs/godoc/* output/combined/
cp -r ./misc/stdlib_diff/gnoreport/* output/combined/gnoreport
- uses: actions/configure-pages@v5
Expand All @@ -37,7 +42,7 @@ jobs:
path: ./output/combined

deploy:
if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions.
if: ${{ github.repository == 'Villaquiranm/gno' }} # Alternatively, validate based on provided tokens and permissions.
runs-on: ubuntu-latest
environment:
name: github-pages
Expand Down
10 changes: 10 additions & 0 deletions misc/stdlib_diff/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
all: clean gen

install:
go install .

gen:
stdlib_diff -src $(GOROOT)/src -dst ../../gnovm/stdlibs -out ./gnoreport

clean:
rm -rf gnoreport

0 comments on commit 86c79cf

Please sign in to comment.