diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml deleted file mode 100644 index 7ca1afc4..00000000 --- a/.github/workflows/deploy-storybook.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Deploy Storybook - -on: - push: - branches: - - master - -jobs: - build-deploy: - name: Build and Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - persist-credentials: false # needed for the GitHub Pages deploy to work - - name: Use Node.js '16.x' - uses: actions/setup-node@v1 - with: - node-version: "16.x" - - name: Install dependencies - run: yarn - - name: Build Storybook - run: yarn workspace @creature-chess/ui build-storybook - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@3.4.1 - with: - ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }} - BRANCH: gh-pages - FOLDER: modules/@creature-chess/ui/output - TARGET_FOLDER: storybook diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml deleted file mode 100644 index cbf19258..00000000 --- a/.github/workflows/deploy-to-gh-pages.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Deploy menu to GitHub Pages - -on: - push: - branches: - - master - -jobs: - build-deploy: - name: Build and Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - persist-credentials: false # needed for the GitHub Pages deploy to work - - name: Use Node.js '16.x' - uses: actions/setup-node@v1 - with: - node-version: "16.x" - - name: Install dependencies - run: yarn - - name: Build application - run: yarn workspace @creature-chess-app/web-menu build - env: - GA_ID: ${{ secrets.GA_ID }} - COOKIEBOT_ID: ${{ secrets.COOKIEBOT_ID }} - GAME_SERVER_URL: ${{ secrets.GAME_SERVER_URL }} - API_INFO_URL: ${{ secrets.API_INFO_URL }} - AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} - AUTH0_SPA_CLIENT_ID: ${{ secrets.AUTH0_SPA_CLIENT_ID }} - CREATURE_CHESS_APP_URL: ${{ secrets.CREATURE_CHESS_APP_URL }} - GH_PAGES: true - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@3.4.1 - with: - ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }} - BRANCH: gh-pages - FOLDER: apps/web-menu/public diff --git a/apps/web-menu/webpack.config.js b/apps/web-menu/webpack.config.js index 9a181f47..c7b07b60 100644 --- a/apps/web-menu/webpack.config.js +++ b/apps/web-menu/webpack.config.js @@ -5,60 +5,6 @@ const { TsConfigPathsPlugin } = require("awesome-typescript-loader"); const CircularDependencyPlugin = require("circular-dependency-plugin"); const { DefinePlugin, EnvironmentPlugin, ProvidePlugin } = require("webpack"); -const getGAScript = (id) => { - if (!id) { - return ""; - } - - return ` - - `; -}; - -// we need to inject some redirect magic if deploying to GitHub pages -const getGHPagesRedirectScript = (enabled) => { - if (!enabled) { - return ""; - } - - return ` - `; -}; - const outDir = path.resolve(__dirname, "dist"); module.exports = { @@ -105,10 +51,6 @@ module.exports = { APP_VERSION: JSON.stringify(require("../../package.json").version), }), new HtmlWebpackPlugin({ - templateParameters: () => ({ - googleAnalyticsScript: getGAScript(process.env.GA_ID), - ghPagesRedirectScript: getGHPagesRedirectScript(process.env.GH_PAGES), - }), scriptLoading: "blocking", }), new CircularDependencyPlugin({