Skip to content

Commit

Permalink
feat: website release please (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 7, 2022
1 parent c79f518 commit df21a37
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/website.yml
Expand Up @@ -71,3 +71,29 @@ jobs:
with:
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
path: ${{ matrix.test_results_path }}
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Release
runs-on: ubuntu-latest
needs: check
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: tag-release
with:
path: packages/website
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
monorepo-tags: true
package-name: website
- uses: actions/checkout@v2
if: ${{ steps.tag-release.outputs.releases_created }}
- uses: actions/setup-node@v2
if: ${{ steps.tag-release.outputs.releases_created }}
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
- uses: bahmutov/npm-install@v1
if: ${{ steps.tag-release.outputs.releases_created }}
- name: Website - Deploy
if: ${{ steps.tag-release.outputs.releases_created }}
run: ./packages/tools/cli.js deploy-website --email ${{ secrets.CF_EMAIL }} --key ${{secrets.CF_KEY}} --zone ${{ secrets.CF_ZONE }} --account ${{secrets.CF_ACCOUNT}}
3 changes: 1 addition & 2 deletions packages/website/pages/index.js
@@ -1,5 +1,4 @@
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'

export default function Home() {
Expand All @@ -16,7 +15,7 @@ export default function Home() {

<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">nftstorage.link!</a>
Welcome to <a href="https://nextjs.org">nftstorage.link</a>!
</h1>

<p className={styles.description}>
Expand Down

0 comments on commit df21a37

Please sign in to comment.