diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8573ef89c8cc..43ba2f1c0757 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,7 +3,11 @@ name: gh-pages on: pull_request: - branches: [ "master" ] + branches: + - staging + - master + - prod + - 'feat/*' workflow_dispatch: permissions: @@ -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 @@ -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 diff --git a/misc/stdlib_diff/Makefile b/misc/stdlib_diff/Makefile new file mode 100644 index 000000000000..d2c443fddb25 --- /dev/null +++ b/misc/stdlib_diff/Makefile @@ -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