Skip to content

Commit

Permalink
feat: a new release (#18)
Browse files Browse the repository at this point in the history
* feat: add github workflow

* feat: add dependency

* feat: activate poetry environment

* feat: remove shell activation

* feat: save new tag version on remote

* feat: add workflow for prereleases

* feat: add workflow for prereleases

* feat: catch latest tag

* feat: catch latest tag

* feat: generate release

* feat: generate release

* Promote CI to Alpha (#16)

* feat: testing changelog

* feat: testing changelog (#1)

* feat: testing changelog

* feat: prerelease workflow configuration (#2)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add categorized commits (#3)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* fix: add configuration path to ci (#4)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* fix: remove branch filter (#5)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* fix: remove labels  (#6)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* fix: ci/prerelease workflow (#7)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* fix: remove extra config (#8)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow (#9)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow (#10)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow (#11)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: ci/prerelease workflow (#12)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow remove tag config (#13)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: testing new changelog action

* fix: remove action trigger

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.20

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.21

* fix: add changelog config

* fix: add changelog config

* fix: add changelog config

* fix: remove changelog prefix

* fix: update changelog_type

* fix: update changelog_type

* fix: update changelog_type

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* feat: ci/prerelease workflow (#14)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: testing new changelog action

* fix: remove action trigger

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.20

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.21

* fix: add changelog config

* fix: add changelog config

* fix: add changelog config

* fix: remove changelog prefix

* fix: update changelog_type

* fix: update changelog_type

* fix: update changelog_type

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: update changelog config

* feat: update changelog config

---------

Co-authored-by: Christopher A. Flores <christopher.flores@codexitos.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Promote CI to Alpha (#17)

* feat: testing changelog

* feat: testing changelog (#1)

* feat: testing changelog

* feat: prerelease workflow configuration (#2)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add categorized commits (#3)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* fix: add configuration path to ci (#4)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* fix: remove branch filter (#5)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* fix: remove labels  (#6)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* fix: ci/prerelease workflow (#7)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* fix: remove extra config (#8)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow (#9)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow (#10)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow (#11)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: ci/prerelease workflow (#12)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* fix: ci/prerelease workflow remove tag config (#13)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: testing new changelog action

* fix: remove action trigger

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.20

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.21

* fix: add changelog config

* fix: add changelog config

* fix: add changelog config

* fix: remove changelog prefix

* fix: update changelog_type

* fix: update changelog_type

* fix: update changelog_type

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* feat: ci/prerelease workflow (#14)

* feat: testing changelog

* feat: testing changelog

* feat: add categorized commits

* feat: add configuration path

* feat: remove base branch filter

* feat: remove label filters

* feat: omit from and to

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: remove extra config

* feat: testing new changelog action

* fix: remove action trigger

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.20

* fix: add github token

* fix: add github token

* fix: add github token

* fix: add github token

* [Changelog CI] Add Changelog for Version v1.0.0-alpha.21

* fix: add changelog config

* fix: add changelog config

* fix: add changelog config

* fix: remove changelog prefix

* fix: update changelog_type

* fix: update changelog_type

* fix: update changelog_type

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: replace changelog action

* fix: replace changelog action

* fix: replace changelog action

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: testing auto pr

* feat: update changelog config

* feat: update changelog config

* feat: add release workflow

---------

Co-authored-by: Christopher A. Flores <christopher.flores@codexitos.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 3, 2023
1 parent 62198ec commit db9c190
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 9 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Pre-release version

on:
push:
branches: [ci/prerelease-workflow]

jobs:
publish:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 'Get Previous tag'
id: fromTag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: Installing python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Installing poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6.1'

- name: Install deps
run: poetry install

- name: Run Dagger pipeline
run: poetry run python ci.py

- name: Publish tag
run: git push --tags

- name: 'Get lastest tag'
id: toTag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- uses: actions/checkout@v3
with:
ref: alpha

- name: Reset promotion branch
run: |
git fetch origin ${{ github.ref_name }}:${{ github.ref_name }}
git reset --hard ${{ github.ref_name }}
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
with:
toTag: ${{ steps.toTag.outputs.tag }}
configuration: "changelog-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Echo Changelog
env:
CHANGELOG: ${{ steps.github_release.outputs.changelog }}
run: echo "$CHANGELOG"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: Promote CI to Alpha
body: ${{ steps.github_release.outputs.changelog }}
branch: ${{ github.ref_name }}
reviewers: cafadev
assignees: cafadev
delete-branch: true
draft: true
labels: |
release
automated
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.github_release.outputs.changelog }}
prerelease: true
tag_name: ${{ steps.toTag.outputs.tag }}
62 changes: 62 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Pre-release version

on:
push:
branches: [main]

jobs:
publish:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 'Get Previous tag'
id: fromTag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: Installing python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Installing poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6.1'

- name: Install deps
run: poetry install

- name: Run Dagger pipeline
run: poetry run python ci.py

- name: Publish tag
run: git push --tags

- name: 'Get lastest tag'
id: toTag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
with:
toTag: ${{ steps.toTag.outputs.tag }}
configuration: "changelog-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Echo Changelog
env:
CHANGELOG: ${{ steps.github_release.outputs.changelog }}
run: echo "$CHANGELOG"

- name: Create Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.github_release.outputs.changelog }}
tag_name: ${{ steps.toTag.outputs.tag }}
23 changes: 23 additions & 0 deletions changelog-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feature", "enhancement", "feat"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix", "bug"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
},
{
"title": "## 👷 Chore",
"labels": ["task", "chore"]
}
],
"sort": "ASC",
"template": "${{CHANGELOG}}\n ${{IGNORED}}",
"empty_template": "- no changes"
}
9 changes: 1 addition & 8 deletions ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,9 @@ async def test():

python = (
client.container().from_("weastur/poetry:latest-python-3.11")
.with_exec(["apt-get", "install", "git"])
# mount cloned repository into image
.with_directory("/matic-release", src)
# set current working directory for next commands
.with_workdir("/matic-release")
# install test dependencies
# .with_exec(["poetry", "shell"])
# install test dependencies
.with_exec(["poetry", "install"])
# run tests
.with_exec(["python", "main.py"])
)

Expand All @@ -37,4 +30,4 @@ async def test():
git.push_tag(tag)


anyio.run(test)
anyio.run(test)
Binary file modified matic_release/axioma/__pycache__/exceptions.cpython-311.pyc
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
dagger-io = "^0.8.4"
anyio = "^4.0.0"


[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit db9c190

Please sign in to comment.