Skip to content

Commit

Permalink
first try
Browse files Browse the repository at this point in the history
  • Loading branch information
bertramn committed Oct 22, 2023
1 parent 01193e5 commit 8c37094
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[bumpversion]
current_version = 0.0.1
files = .bumpversion.cfg .mvn/maven.config README.md
message = [patch] next version v{new_version}
commit = True
tag = False

31 changes: 31 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

# ensure utf
[*.{bat,bat,ps,cs}]
charset = latin1
end_of_line = crlf

[*.{xml,xsd,xjb}]
max_line_length = 140

# python specific formatting
[*.py]
indent_style = space
indent_size = 4

[{Makefile,*.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
indent_size = 4
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
on:
workflow_dispatch:
push:
branches:
- main
- develop
- releases/**

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "some build"

scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: echo "scan something"

inspect:
runs-on: ubuntu-latest
needs: [build, scan]
steps:
- run: jq '.' $GITHUB_EVENT_PATH

release:
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [build, scan]
steps:
- uses: actions/checkout@v4
- id: revision
run: cat .bumpversion.cfg | grep current_version | awk '{ print version=$3 }' >> $GITHUB_ENV
- run: echo "some publish with version {{ steps.revision.version }}"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea/
*.iml

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-Drevision=0.0.1-SNAPSHOT
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# GitHub-action-test
testing GitHub release process
# GitHub Action Test

Testing GitHub release process with current version v0.0.1

0 comments on commit 8c37094

Please sign in to comment.