diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d9f74ce2..3b180204 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,43 +50,7 @@ jobs: continue-on-error: true env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - uses: sakebook/actions-flutter-pub-publisher@v1.4.0 - with: - credential: ${{ secrets.PUB_CREDENTIAL_JSON }} - package_directory: ./packages/iconoir-flutter - website: - runs-on: ubuntu-latest - name: deploy - needs: [release] - steps: - - uses: actions/checkout@v2 - with: - ref: main # We have to checkout main or PNPM fails. Tag should be on main anyway. - - uses: actions/cache@v2 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}- - - uses: actions/setup-node@v2 - with: - node-version: '16' - registry-url: 'https://registry.npmjs.org' - - uses: pnpm/action-setup@v2.1.0 - with: - version: 7.8.0 - run_install: true - - name: Build Packages - run: pnpm run dist - - name: Build - run: ./node_modules/.bin/next build - working-directory: iconoir.com - - name: Export - run: ./node_modules/.bin/next export - working-directory: iconoir.com - - name: Setup Pages - uses: actions/configure-pages@v1 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: './iconoir.com/out' + # - uses: sakebook/actions-flutter-pub-publisher@v1.4.0 + # with: + # credential: ${{ secrets.PUB_CREDENTIAL_JSON }} + # package_directory: ./packages/iconoir-flutter diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml new file mode 100644 index 00000000..9a7df851 --- /dev/null +++ b/.github/workflows/website.yaml @@ -0,0 +1,44 @@ +name: Website + +on: + workflow_dispatch: {} + push: + tags: + - 'v*' + +jobs: + website: + runs-on: ubuntu-latest + name: deploy + steps: + - uses: actions/checkout@v2 + with: + ref: main # We have to checkout main or PNPM fails. Tag should be on main anyway. + - uses: actions/cache@v2 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- + - uses: actions/setup-node@v2 + with: + node-version: '16' + registry-url: 'https://registry.npmjs.org' + - uses: pnpm/action-setup@v2.1.0 + with: + version: 7.8.0 + run_install: true + - name: Build Packages + run: pnpm run dist + - name: Build + run: ./node_modules/.bin/next build + working-directory: iconoir.com + - name: Export + run: ./node_modules/.bin/next export + working-directory: iconoir.com + - name: Setup Pages + uses: actions/configure-pages@v1 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: './iconoir.com/out'