Skip to content

Create dependabot.yml (#82) #72

Create dependabot.yml (#82)

Create dependabot.yml (#82) #72

Workflow file for this run

name: Release MiSim
on:
push:
branches: [ master ]
jobs:
Prepare-and-Release:
if: "!contains(github.event.head_commit.message, '[maven-release-plugin]')"
name: Prepare and Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Java 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
cache: 'maven'
- name: Configure Git
run: |
git config --global committer.email "[email protected]"
git config --global committer.name "GitHub Release Workflow"
git config --global author.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global author.name "${GITHUB_ACTOR}"
- name: Get Maven version
run: |
export MAVEN_VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed "s/-SNAPSHOT$//" )
echo "Retreived Maven Version: $MAVEN_VERSION"
echo "MAVEN_VERSION=$MAVEN_VERSION" >> $GITHUB_ENV
- name: Prepare & Release Maven Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn -B release:prepare release:perform -DpushChanges=false -DlocalCheckout=true -Darguments="-DskipTests"
git clean -f
- name: Push to master
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUBLISHER_TOKEN }}
branch: master
tags: true
force: true
- name: Merge into develop
run: |
git fetch --all
git checkout develop
git merge master
- name: Push to develop
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUBLISHER_TOKEN }}
branch: develop