Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Publish artifacts with semantic-release releases #1094

Merged
merged 2 commits into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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