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

chore: test #1999

Closed
Closed
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
44 changes: 44 additions & 0 deletions .github/workflows/relase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install node packages
run: npm ci

- name: Build js
run: npm run build

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Build python package
run: python setup.py sdist bdist_wheel

- name: Install GNU gettext
run: sudo apt-get install gettext

- name: update translations
run: make pull_translations

- name: Release
env:
PYPI_TOKEN: ${{ secrets.PYPI_UPLOAD_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ private.py
# pyenv
.python-version

!openassessment/xblock/static/dist/
openassessment/xblock/static/dist/
21 changes: 21 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"semantic-release-pypi",
{
"repoUrl": "https://test.pypi.org/legacy/"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
"assets": ["CHANGELOG.md", "openassessment/__init__.py", "package.json", "package-lock.json"]
}
]
]
}
Empty file added CHANGELOG.md
Empty file.

This file was deleted.

22 changes: 0 additions & 22 deletions openassessment/xblock/static/dist/manifest.json

This file was deleted.

This file was deleted.

Loading
Loading