From bae47234f8ff64772475ec359d76a62bb1d99c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Andrei?= Date: Wed, 10 Jul 2024 21:48:32 -0300 Subject: [PATCH] Release 1.0.0a1 --- .github/workflows/tag.yml | 61 ++----------------- backend/CHANGES.md | 4 ++ backend/news/#initial.feature | 1 - backend/src/plonegovbr/intranet/about.py | 2 +- frontend/CHANGELOG.md | 15 +++++ frontend/package.json | 6 +- .../portalbrasil-intranet/CHANGELOG.md | 6 ++ .../news/#initial.feature | 1 - .../portalbrasil-intranet/package.json | 2 +- version.txt | 2 +- 10 files changed, 35 insertions(+), 65 deletions(-) delete mode 100644 backend/news/#initial.feature create mode 100644 frontend/CHANGELOG.md delete mode 100644 frontend/packages/portalbrasil-intranet/news/#initial.feature diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 9691fbf..0904e1d 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -23,66 +23,13 @@ jobs: id: vars run: | echo 'BASE_TAG=sha-'$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT - echo "PLONE_VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT - python3 -c 'import json; data = json.load(open("./mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") or "latest")' >> $GITHUB_OUTPUT + echo "PLONE_VERSION=$(cat backend/version.txt)" >> $GITHUB_OUTPUT + python3 -c 'import json; data = json.load(open("./frontend/mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") or "latest")' >> $GITHUB_OUTPUT - name: Test vars run: | echo 'BASE_TAG=${{ steps.vars.outputs.BASE_TAG }}' - echo "PLONE_VERSION=${{ steps.vars.outputs.PLONE_VERSION }}' - echo 'VOLTO_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }} - - backend: - runs-on: ubuntu-latest - needs: - - config - permissions: - contents: read - packages: write - - steps: - - - name: Checkout - uses: actions/checkout@v4 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: | - ${{ env.IMAGE_NAME_PREFIX }}-backend - labels: | - org.label-schema.docker.cmd=docker run -d -p 8080:8080 ${{ env.IMAGE_NAME_PREFIX }}-backend:latest - flavor: - latest=false - tags: | - type=ref,event=branch - type=sha - type=pep440,pattern={{version}} - type=pep440,pattern={{major}}.{{minor}} - type=pep440,pattern={{major}} - type=raw,value=latest,enable={{is_default_branch}} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - platforms: linux/amd64 - context: backend - file: backend/Dockerfile - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - PLONE_VERSION=${{ needs.config.outputs.PLONE_VERSION }} + echo "PLONE_VERSION=${{ steps.vars.outputs.PLONE_VERSION }}" + echo 'VOLTO_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }}' backend: runs-on: ubuntu-latest diff --git a/backend/CHANGES.md b/backend/CHANGES.md index 3020bae..cc2475d 100644 --- a/backend/CHANGES.md +++ b/backend/CHANGES.md @@ -8,3 +8,7 @@ --> + +## 1.0.0a1 (2024-07-10) + +No significant changes. diff --git a/backend/news/#initial.feature b/backend/news/#initial.feature deleted file mode 100644 index 5bc2353..0000000 --- a/backend/news/#initial.feature +++ /dev/null @@ -1 +0,0 @@ -Implementação inicial do PortalBrasil: Intranet [@ericof] diff --git a/backend/src/plonegovbr/intranet/about.py b/backend/src/plonegovbr/intranet/about.py index ff8bfc5..6e45a91 100644 --- a/backend/src/plonegovbr/intranet/about.py +++ b/backend/src/plonegovbr/intranet/about.py @@ -1 +1 @@ -__version__ = "1.0.0a0" +__version__ = "1.0.0a1" diff --git a/frontend/CHANGELOG.md b/frontend/CHANGELOG.md new file mode 100644 index 0000000..71592d2 --- /dev/null +++ b/frontend/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + + + + + +## 1.0.0-alpha.1 (2024-07-10) + +### Feature + +- Implementação inicial do PortalBrasil: Intranet [@ericof] [##initial](https://github.com/plonegovbr/portalbrasil-intranet/issue/#initial) diff --git a/frontend/package.json b/frontend/package.json index 7f25471..bd281a1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "portalbrasil-intranet-dev", - "version": "1.0.0-alpha.0", - "description": "Solução de Intranet construída com Plone", + "version": "1.0.0-alpha.1", + "description": "Solu\u00e7\u00e3o de Intranet constru\u00edda com Plone", "author": "PloneGov-BR", "homepage": "https://github.com/plonegovbr/portalbrasil-intranet", "license": "MIT", @@ -41,4 +41,4 @@ "mrs-developer": "^2.2.0" }, "packageManager": "pnpm@9.1.1" -} +} \ No newline at end of file diff --git a/frontend/packages/portalbrasil-intranet/CHANGELOG.md b/frontend/packages/portalbrasil-intranet/CHANGELOG.md index e24f3a8..71592d2 100644 --- a/frontend/packages/portalbrasil-intranet/CHANGELOG.md +++ b/frontend/packages/portalbrasil-intranet/CHANGELOG.md @@ -7,3 +7,9 @@ --> + +## 1.0.0-alpha.1 (2024-07-10) + +### Feature + +- Implementação inicial do PortalBrasil: Intranet [@ericof] [##initial](https://github.com/plonegovbr/portalbrasil-intranet/issue/#initial) diff --git a/frontend/packages/portalbrasil-intranet/news/#initial.feature b/frontend/packages/portalbrasil-intranet/news/#initial.feature deleted file mode 100644 index 5bc2353..0000000 --- a/frontend/packages/portalbrasil-intranet/news/#initial.feature +++ /dev/null @@ -1 +0,0 @@ -Implementação inicial do PortalBrasil: Intranet [@ericof] diff --git a/frontend/packages/portalbrasil-intranet/package.json b/frontend/packages/portalbrasil-intranet/package.json index 24bafe8..8f41c65 100644 --- a/frontend/packages/portalbrasil-intranet/package.json +++ b/frontend/packages/portalbrasil-intranet/package.json @@ -1,6 +1,6 @@ { "name": "@plonegovbr/portalbrasil-intranet", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "description": "Solução de Intranet construída com Plone", "main": "src/index.js", "license": "MIT", diff --git a/version.txt b/version.txt index 41432f0..1628379 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.0a0 +1.0.0a1