diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml new file mode 100644 index 0000000..ac709a7 --- /dev/null +++ b/.github/workflows/deploy-preview.yml @@ -0,0 +1,33 @@ +name: Deploy Preview + +on: + push: + branches: + - main + +permissions: {} + +jobs: + deploy-docs: + permissions: + contents: write # to write to gh-pages branch (peaceiris/actions-gh-pages) + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "npm" + + - name: Install packages + run: npm ci + + - name: Build + run: npm run build + + - name: Deploy docs + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: dist diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..561a1e9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18.20.3 diff --git a/config/environment.js b/config/environment.js index 3bb8526..cfb48a4 100644 --- a/config/environment.js +++ b/config/environment.js @@ -4,7 +4,7 @@ module.exports = function (environment) { let ENV = { modulePrefix: 'ember-redux', environment, - rootURL: '/', + rootURL: '/ember-redux/', locationType: 'auto', EmberENV: { FEATURES: {