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

Tabris87 patch 1 workflows #65

Merged
merged 46 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0d6b6a0
chore(actions): created action for automatic versioning and release
tabris87 Feb 29, 2024
f5f5a47
Update node.js.yml
tabris87 Feb 29, 2024
4305732
chore(github-action): changed run command to the deployBuild script
tabris87 Feb 29, 2024
84d6caa
Merge remote-tracking branch 'origin/develop' into tabris87-patch-1-w…
tabris87 Feb 29, 2024
cb6da8b
fix(github-action): added npm install step
tabris87 Feb 29, 2024
4bd7599
chore(github-action): try to fix file not found error
tabris87 Feb 29, 2024
8293bf3
chore(github-action): try to fix file not found error
tabris87 Feb 29, 2024
e682253
chore(deploy-script): replaced fixed strings with path variables
tabris87 Feb 29, 2024
1edf195
chore(deploy-script): fixed lower case letters, for unix environments
tabris87 Feb 29, 2024
3826448
chore(github-action): added user.name and email to workflow
tabris87 Feb 29, 2024
c2d1166
chore(github-action): removed pull-requests as they not build releases
tabris87 Feb 29, 2024
43b6c0d
chore(github-action): fixed a better version tagging
tabris87 Feb 29, 2024
48b03f0
Merge branch 'develop' into tabris87-patch-1-workflows
tabris87 Feb 29, 2024
e22554c
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
6741a73
Merge branch 'develop' into tabris87-patch-1-workflows
tabris87 Feb 29, 2024
6ecc0c1
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
8a1c5f6
Merge branch 'tabris87-patch-1-workflows' of https://github.com/ui5-c…
tabris87 Feb 29, 2024
fdea9df
Merge branch 'develop' into tabris87-patch-1-workflows
tabris87 Feb 29, 2024
acaa4d7
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
a54e509
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
63e22f4
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
ea82f64
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
56b463f
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
0215052
Update check_version_readout.js.yml
tabris87 Feb 29, 2024
a9d9363
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
5623073
Merge branch 'tabris87-patch-1-workflows' of https://github.com/ui5-c…
tabris87 Feb 29, 2024
ff80142
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
6017855
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
cf42c16
chore(github-action): get auto pre-release working
tabris87 Feb 29, 2024
37a5b84
Merge branch 'develop' into tabris87-patch-1-workflows
tabris87 Mar 1, 2024
81cf938
chore(github-action): for testing added pull-request to pre-release b…
tabris87 Mar 1, 2024
9aa68d5
chore(github-action): try to get the version right
tabris87 Mar 1, 2024
25993a6
chore(github-action): try getting artifact upload correct
tabris87 Mar 1, 2024
9ffd95e
Update node.js.yml
tabris87 Mar 1, 2024
b2dfd6c
Update node.js.yml
tabris87 Mar 1, 2024
6a58fb9
Update node.js.yml
tabris87 Mar 1, 2024
3cdd6a6
Update node.js.yml
tabris87 Mar 1, 2024
fd9e357
chore: update node.js.yml
tabris87 Mar 1, 2024
9f0b05a
chore: update node.js.yml
tabris87 Mar 1, 2024
c023059
chore: update node.js.yml
tabris87 Mar 1, 2024
50db992
chore: update node.js.yml
tabris87 Mar 1, 2024
b661335
Update node.js.yml
tabris87 Mar 1, 2024
cdf28e5
Update node.js.yml
tabris87 Mar 1, 2024
802144c
Update node.js.yml
tabris87 Mar 1, 2024
f7950bf
Update node.js.yml
tabris87 Mar 1, 2024
85ccc6e
Update node.js.yml
tabris87 Mar 1, 2024
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
30 changes: 30 additions & 0 deletions .github/workflows/check_version_readout.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Check Version

on:
pull_request:
branches:
- "develop"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- name: Set release version
id: set_version
run: |
echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV"
- name: Read release version
id: read_version
run: |
echo "$version"
55 changes: 36 additions & 19 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,62 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Create Nightly Release

on:
push:
branches: ["develop"]

branches:
- develop
paths:
- 'webapp/**'
jobs:
build:
build-and-release:
if: "!startsWith(github.event.head_commit.message, 'chore') && !startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci')"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- run: npm ci
- name: Install dependencies
run: npm ci
- name: Configure committer
run: |
git config user.name "Github Actions Bot"
git config user.email "<>"
- run: npm run changelog
- run: npm run deployBuild -- --pre
git config user.name "UI5 journey recorder bot"
git config user.email "[email protected]"
- name: Create changelog and increase version
run: npm run changelog -- --prerelease nightly
- name: Build the extension for deploy
run: npm run deployBuild -- --pre
working-directory: ${{ github.workspace }}
- name: Set release names
id: set_names
- name: Extract versions
id: version_extract
run: |
echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV"
- name: Create Pre Release
id: create_pre_release
echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV"
echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV"
- name: Push version and changlog
run: git push --follow-tags origin develop
- name: Create Github Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{version}}
release_name: Pre-Release ${{version}}
tag_name: ${{ env.VERSION }}_nightly
release_name: Nightly-Release $env.version
body: |
Automatic generated pre-release with the latest features and bugfixes
Automatic generated nightly release with the latest features and bugfixes
draft: false
prerelease: true
path: deployments/journey_recorder_nightly_${{version}}.zip
- name: Upload release artifact
id: upload_release_artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./deployments/journey_recorder_nightly_${{ env.FILE_VERSION }}.zip
asset_name: journey_recorder_nightly_${{ env.FILE_VERSION }}.zip
asset_content_type: application/zip