Skip to content

Commit

Permalink
Merge pull request #9 from sebgroup/hotfix/ie-unsubscribe-error
Browse files Browse the repository at this point in the history
Hotfix/ie unsubscribe error
  • Loading branch information
hjalmers authored Oct 6, 2020
2 parents 179bb9d + 066b4d8 commit 2db8a9e
Show file tree
Hide file tree
Showing 6 changed files with 2,078 additions and 2,432 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,42 @@ jobs:

- name: Build web component and documentation
run: npm run build

#- uses: codfish/semantic-release-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run semantic release and publish new version to npm
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release

- name: Set base href
run: ./node_modules/.bin/replace '<base href=(.*?)>' '<base href="/${{ github.event.repository.name }}/">' www/index.html

- name: Set build (run) number
run: ./node_modules/.bin/replace '##BUILD_NUMBER##' '${{ github.run_number }}' www/index.html

- name: Get last release
# if: steps.semantic.outputs.new-release-published !== 'true'
id: version
uses: abatilo/release-info-action@v1.1.0
uses: abatilo/release-info-action@v1.3.0
with:
owner: sebgroup
repo: magic-iframe

#- name: Set version number after release
# if: steps.semantic.outputs.new-release-published == 'true'
# run: ./node_modules/.bin/replace '##VERSION##' 'v${{ steps.semantic.outputs.release-version }}' www/index.html

- name: Set version number
# if: steps.semantic.outputs.new-release-published != 'true'
run: ./node_modules/.bin/replace '##VERSION##' '${{ steps.version.outputs.latest_tag }}' www/index.html
run: ./node_modules/.bin/replace '##VERSION##' '${{ steps.version.outputs.latest_tag }}' www/index.html

- name: Deploy documentation to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.4.1
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
ACCESS_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
Expand Down
Loading

0 comments on commit 2db8a9e

Please sign in to comment.