diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..40a0d0f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,44 @@ +name: Deploy presskit.html to GitHub Pages + +on: + push: + branches: + - master + + workflow_dispatch: + +permissions: + id-token: write + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js environment + uses: actions/setup-node@v4 + with: + node-version: "18" + + - name: Run install + run: yarn install + + - name: Build presskit.html site + run: yarn presskit build + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "./build" + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index d163863..844dbf9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -build/ \ No newline at end of file +node_modules +build/ diff --git a/package.json b/package.json new file mode 100644 index 0000000..59e258c --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "bearly-humans-presskit", + "version": "1.0.0", + "description": "Made with [presskit.html](/~https://github.com/pixelnest/presskit.html)", + "author": "Bearly Humans", + "scripts": { + "build": "presskit build" + }, + "dependencies": { + "presskit": "^0.13.0" + } +}