forked from ShiftLeftSecurity/overflowdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Privado-Inc/release/gh_packages
Initial work for gh package release
- Loading branch information
Showing
10 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: ["*"] | ||
workflow_dispatch: | ||
jobs: | ||
release: | ||
concurrency: release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- run: export $GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 19 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.coursier | ||
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }} | ||
- run: sbt +test ciReleaseTagNextVersion ++3.4.1 publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") | ||
addSbtPlugin("io.shiftleft" % "sbt-ci-release-early" % "2.0.19") | ||
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1") | ||
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
name := "testdomains" | ||
|
||
publish / skip := true | ||
|
||
|
||
githubOwner := "Privado-Inc" | ||
githubRepository := "overflowdb" | ||
|
||
credentials += | ||
Credentials( | ||
"GitHub Package Registry", | ||
"maven.pkg.github.com", | ||
"Privado-Inc", | ||
sys.env.getOrElse("GITHUB_TOKEN", "N/A") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
git remote add upstream https://github.com/ShiftLeftSecurity/overflowdb | ||
|
||
usage() { | ||
echo "Usage: $0 [--publish]" | ||
exit 1 | ||
} | ||
|
||
PUBLISH=false | ||
while [[ "$#" -gt 0 ]]; do | ||
case $1 in | ||
--publish) PUBLISH=true ;; | ||
*) usage ;; | ||
esac | ||
shift | ||
done | ||
|
||
git fetch upstream | ||
|
||
git checkout sync | ||
git merge upstream/master | ||
git push origin sync | ||
|
||
if [ "$PUBLISH" = true ]; then | ||
git checkout master | ||
git merge sync | ||
git push origin master | ||
fi |