-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(actions): removed useless actions from repository * chore(ci): added gitlab ci config file * Merge: Checked local changes * Update README.md * Merge: merge local changes * fix(compose): docker compose fixes * Fix: fixed docker compose config * Merge: local changes * merge(local): merged local changes * Merged: merged local changes * Improve: moved topics config to db (#11) * Update production.toml * chore(rmq): replaced direct to fanout exchange kind * Improve: Merge local changes * chore(git): updated .gitignore file * fix(rss): return current datetime on parsing rss item error * fix(rss): return err from spawned thread if rss error * chore(tracing): updated tracing msg formatting * chore(tracing): updated tracing msg formatting * fix(datetime): added dateparser crate * hotfix(docker): added coping configs to container * chore(docker): optimized docker image size * chore(git): updated .gitignore * chore(git): added actions to build release * chore(git): added actions to build release * chore(docs): updated README.md file --------- Co-authored-by: Bread White <[email protected]>
- Loading branch information
1 parent
9a4b91f
commit 513c91f
Showing
9 changed files
with
111 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: "Create release" | ||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "release/**" | ||
|
||
jobs: | ||
create-release: | ||
name: create release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
outputs: | ||
version_output: ${{ steps.version.outputs.project_version }} | ||
upload_url_output: ${{ steps.release.outputs.upload_url }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get project version | ||
id: version | ||
run: | | ||
VERSION=$(cargo metadata --format-version=1 | jq '.packages[] | select(.name=="news-rss").version') | ||
echo "project_version=$VERSION" | grep -E '\d\.\d\.\d' >> $GITHUB_OUTPUT | ||
- name: Create github release | ||
id: release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
draft: false | ||
prerelease: false | ||
body_path: CHANGELOG.md | ||
tag_name: news-rss-${{ steps.version.outputs.project_version }} | ||
release_name: news-rss-${{ steps.version.outputs.project_version }} | ||
|
||
build: | ||
name: build project | ||
runs-on: ubuntu-latest | ||
needs: create-release | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build rust library | ||
run: cargo build --release | ||
|
||
- name: Create archive | ||
uses: vimtor/action-zip@5f1c4aa587ea41db1110df6a99981dbe19cee310 | ||
with: | ||
files: ./target | ||
dest: news-rss-${{ needs.create-release.outputs.version_output }}.zip | ||
recursive: true | ||
|
||
- name: Upload linux artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-release.outputs.upload_url_output }} | ||
asset_name: news-rss-${{ needs.create-release.outputs.version_output }}.zip | ||
asset_path: ./news-rss-${{ needs.create-release.outputs.version_output }}.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,10 @@ | |
.run | ||
.vscode | ||
|
||
.env | ||
.DS_Store | ||
|
||
/rabbitmq-data | ||
/redis-data | ||
/redis-dataru | ||
|
||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## What's Changed | ||
* Feature: Impl Redis cache by @breadrock1 in https://github.com/breadrock1/news-rss/pull/1 | ||
* Improve: Impled Readme file and some fix resources by @breadrock1 in https://github.com/breadrock1/news-rss/pull/2 | ||
* Feature: Impl GitHub Actions by @breadrock1 in https://github.com/breadrock1/news-rss/pull/3 | ||
* Improve: use llm to extract structured data by @breadrock1 in https://github.com/breadrock1/news-rss/pull/4 | ||
* Fix: Removed useless tests and data by @breadrock1 in https://github.com/breadrock1/news-rss/pull/5 | ||
* Improve: Fixed crawler and added clearing html by @breadrock1 in https://github.com/breadrock1/news-rss/pull/6 | ||
* Feat/add rss sources db by @breadrock1 in https://github.com/breadrock1/news-rss/pull/7 | ||
* Fix: docker compose fixes by @breadrock1 in https://github.com/breadrock1/news-rss/pull/8 | ||
* Feature: pgsql storage routes by @breadrock1 in https://github.com/breadrock1/news-rss/pull/10 | ||
* Improve: moved topics config to db by @breadrock1 in https://github.com/breadrock1/news-rss/pull/11 | ||
* Merge/local changes by @breadrock1 in https://github.com/breadrock1/news-rss/pull/12 | ||
* Fix/fix by @breadrock1 in https://github.com/breadrock1/news-rss/pull/13 | ||
* Fix: some rss changes by @breadrock1 in https://github.com/breadrock1/news-rss/pull/14 | ||
|
||
## New Contributors | ||
* @breadrock1 made their first contribution in https://github.com/breadrock1/news-rss/pull/1 | ||
|
||
**Full Changelog**: https://github.com/breadrock1/news-rss/commits/1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters