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

Release #53

Merged
merged 3 commits into from
Aug 11, 2024
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
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure full history is fetched
fetch-depth: 0

- name: Sync with Remote
run: |
Expand Down Expand Up @@ -51,6 +51,12 @@ jobs:
if: steps.semantic_release.outputs.new_release == 'true'
run: echo "vv.danieljancar.dev" > dist/apps/frontend/CNAME

- name: Move Files Out of browser Folder
if: steps.semantic_release.outputs.new_release == 'true'
run: |
mv dist/apps/frontend/browser/* dist/apps/frontend/
rmdir dist/apps/frontend/browser

- name: Deploy to GitHub Pages
if: steps.semantic_release.outputs.new_release == 'true'
run: |
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ We also got some additional features we thought about and couldn't implement yet

- **Voting Timeframes**: Users creating a new vote can decide whether there's a start and end date for the votes.
- **Multiple Options**: Users can also create votes where multiple options can be selected.
- **Full Test Coverage**: We want to have full test coverage for the platform.
- **Automated Testing**: We already have implemented some automated testing and linting, also in the `release.yml` action, where the app is automatically deployed. If we add full test coverage, we can also add automated testing to the deployment process (spec and e2e tests).

# Contributing

Expand Down
4 changes: 4 additions & 0 deletions docs/DEV_ACTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ ESLint on every pull request and alerts us if there are any errors.

The greetings action is a simple action that sends a greeting message to the user that triggered the action. It is used
to make the new contributors feel welcome and make them aware of the guidelines and best practices.

## Release

We have a fully automated release process that is triggered by a Github Action. The release process is based on the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. The action gets triggered when pushing the latest changes to `master` branch. It publishes a new Github release with the latest changes and updates the `CHANGELOG.md` file, also it publishes the new apps to our servers (Github Pages).
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@votevault/source",
"version": "0.0.0",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"prepare": "husky"
Expand Down
Loading