Skip to content

Commit

Permalink
Merge pull request #1094 from OpenGeoscience/beta
Browse files Browse the repository at this point in the history
fix: Publish artifacts with semantic-release releases
  • Loading branch information
manthey authored Jun 15, 2021
2 parents 63eac77 + 8587b64 commit 6e0b1dd
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 27 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/public
force_orphan: true
deploy-releases:
if: ${{ startswith(github.ref, 'refs/tags/') }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Import artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# name: "Version ${{ github.ref }}"
draft: false
prerelease: false
files: |
dist/built/geo.js
dist/built/geo.min.js
dist/built/geo.lean.js
dist/built/geo.lean.min.js
deploy-npm:
# if: ${{ startswith(github.ref, 'refs/tags/') }}
needs: build
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log
# GeoJS Change Log

## Unreleased
## Version 1.0.2

### Improvements
- The primary map div now has overflow hidden set on it (#1088)
Expand Down
50 changes: 49 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"vtk.js": "^14.3.2"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-plugin-istanbul": "^4.1.6",
Expand Down Expand Up @@ -105,6 +106,44 @@
"webpack-merge": "^4.2.2",
"webpack-serve": "^1.0.2"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# GeoJS Change Log"

}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/built/geo.js",
"label": "Full JS distribution (geo.js)"
},
{
"path": "dist/built/geo.min.js",
"label": "Minified JS distribution (geo.min.js)"
},
{
"path": "dist/built/geo.lean.js",
"label": "Lean JS distribution (geo.lean.js)"
},
{
"path": "dist/built/geo.lean.min.js",
"label": "Lean minified JS distribution (geo.lean.min.js)"
}
]
}
]
]
},
"scripts": {
"build": "webpack --config webpack.config.js && webpack --config webpack-lean.config.js",
"build-examples": "node examples/build.js && webpack --config webpack-examples.config.js",
Expand Down

0 comments on commit 6e0b1dd

Please sign in to comment.