Skip to content

Commit

Permalink
add gitflow actions for PR and snapshots (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnazmulkarim authored Feb 15, 2023
1 parent d133aa2 commit 2537e44
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 60 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/add-to-platform-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Add new issues to Platform project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/alphora/projects/3
github-token: ${{ secrets.ADD_TO_PLATFORM_PAT }}
14 changes: 14 additions & 0 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Check PR
on: pull_request

jobs:
maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Run Checks
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify
23 changes: 23 additions & 0 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Snapshot
on:
push:
branches:
- master

jobs:
maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish snapshot
run: mvn --batch-mode -no-transfer-progress --update-snapshots deploy
env:
MAVEN_USERNAME: ${{ vars.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
21 changes: 0 additions & 21 deletions .travis.settings.xml

This file was deleted.

39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

0 comments on commit 2537e44

Please sign in to comment.