Skip to content

Update of the project #51

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

Merged
merged 7 commits into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 0 additions & 17 deletions .github/workflows/add_label_open_issue.yml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/create-release.yml

This file was deleted.

49 changes: 48 additions & 1 deletion .github/workflows/on-main-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,56 @@ permissions:
contents: write

jobs:
create-release:
name: Create PokeAPI Release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Get project version
run: |
PROJECT_VERSION=$(sh gradlew getProjectVersion | grep VERSION | cut -d ":" -f 2 | sed 's/ //g' )
echo "### Project version $PROJECT_VERSION" >> $GITHUB_STEP_SUMMARY
echo "PROJECT_VERSION=$PROJECT_VERSION" >> ${GITHUB_ENV}

- name: Build Changelog
uses: mikepenz/[email protected]
if: ${{ success() }}
id: build_changelog
with:
configuration: "${{ github.workspace }}/.github/changelog-builder.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build .jar
run: sh gradlew build

- name: Create Release
if: ${{ success() }}
id: create_release
uses: ncipollo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ env.PROJECT_VERSION }}
body: ${{steps.build_changelog.outputs.changelog}}
artifacts: "${{ github.workspace }}/build/libs/pokeapi-${{ env.PROJECT_VERSION }}.jar"
makeLatest: "latest"

deploy-docs:
name: Deploy docs
name: Deploy documentation to GitHub Pages 📚
runs-on: ubuntu-latest
needs: create-release
steps:
- name: Checkout main
uses: actions/checkout@v2
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/publish_maven_central.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name : Publish PokeAPI

env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

on:
release:
types: [created]

jobs:
publish:
name: Publish PokeAPI
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Publish PokeAPI
run: sh gradlew build

- name: Get project version
run: |
PROJECT_VERSION=$(sh gradlew getProjectVersion | grep VERSION | cut -d ":" -f 2 | sed 's/ //g')
echo "### Project version $PROJECT_VERSION" >> $GITHUB_STEP_SUMMARY
echo "PROJECT_VERSION=$PROJECT_VERSION" >> ${GITHUB_ENV}

- name: Get latest release
id: get_release
uses: actions/github-script@v7
with:
script: |
const release = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
core.setOutput('tag_name', release.data.tag_name);

- name: Show latest release tag
run: |
echo "Latest release: ${{ steps.get_release.outputs.tag_name }}"
echo "LASTEST_PROJECT_VERSION=${{ steps.get_release.outputs.tag_name }}" >> ${GITHUB_ENV}


- name: Publish PokeAPI
if: ${{ success() && env.LASTEST_PROJECT_VERSION != env.PROJECT_VERSION }}
run: |
curl -X 'POST'
'https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC' \
-H 'accept: text/plain' \
-H 'Content-Type: multipart/form-data' \
-F "bundle=${{ github.workspace }}/build/libs/pokeapi-${{ env.PROJECT_VERSION }}.jar"
110 changes: 56 additions & 54 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,76 +1,78 @@
.DS_Store
.idea/shelf
/confluence/target
/dependencies/repo
/android.tests.dependencies
/dependencies/android.tests.dependencies
/dist
/local
/gh-pages
/ideaSDK
/clionSDK
/android-studio/sdk
out/
/tmp
/intellij
workspace.xml
*.versionsBackup
/idea/testData/debugger/tinyApp/classes*
/jps-plugin/testData/kannotator
/js/js.translator/testData/out/
/js/js.translator/testData/out-min/
/js/js.translator/testData/out-pir/
.gradle/
build/
!**/src/**/build
!**/test/**/build
*.iml
!**/testData/**/*.iml
.idea/remote-targets.xml
.idea/libraries/Gradle*.xml
.idea/libraries/Maven*.xml
.idea/artifacts/PILL_*.xml
.idea/artifacts/KotlinPlugin.xml
.idea/modules
.idea/runConfigurations/JPS_*.xml
.idea/runConfigurations/PILL_*.xml
.idea/runConfigurations/_FP_*.xml
.idea/runConfigurations/_MT_*.xml
.idea/libraries
.idea/modules.xml
.idea/gradle.xml
.idea/compiler.xml
.idea/inspectionProfiles/profiles_settings.xml
*.iml
*.versionsBackup
.DS_Store
.gradle/
.idea/.name
.idea/artifacts/dist_auto_*
.idea/artifacts/KotlinPlugin.xml
.idea/artifacts/PILL_*.xml
.idea/artifacts/dist.xml
.idea/artifacts/dist_auto_*
.idea/artifacts/ideaPlugin.xml
.idea/artifacts/kotlinc.xml
.idea/artifacts/kotlin_compiler_client_embeddable_jar.xml
.idea/artifacts/kotlin_compiler_jar.xml
.idea/artifacts/kotlin_plugin_jar.xml
.idea/artifacts/kotlin_jps_plugin_jar.xml
.idea/artifacts/kotlin_daemon_client_jar.xml
.idea/artifacts/kotlin_imports_dumper_compiler_plugin_jar.xml
.idea/artifacts/kotlin_jps_plugin_jar.xml
.idea/artifacts/kotlin_main_kts_jar.xml
.idea/artifacts/kotlin_compiler_client_embeddable_jar.xml
.idea/artifacts/kotlin_plugin_jar.xml
.idea/artifacts/kotlin_reflect_jar.xml
.idea/artifacts/kotlin_stdlib_js_ir_*
.idea/artifacts/kotlin_test_js_ir_*
.idea/artifacts/kotlin_stdlib_wasm_*
.idea/artifacts/kotlin_test_js_ir_*
.idea/artifacts/kotlinc.xml
.idea/artifacts/kotlinx_atomicfu_runtime_*
.idea/artifacts/kotlinx_cli_jvm_*
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/csv-plugin.xml
.idea/gradle.xml
.idea/inspectionProfiles/profiles_settings.xml
.idea/jarRepositories.xml
.idea/ktlint-plugin.xml
.idea/libraries
.idea/libraries-with-intellij-classes.xml
.idea/libraries/Gradle*.xml
.idea/libraries/Maven*.xml
.idea/misc.xml
node_modules/
.idea/modules
.idea/modules.xml
.idea/remote-targets.xml
.idea/runConfigurations/JPS_*.xml
.idea/runConfigurations/PILL_*.xml
.idea/runConfigurations/_FP_*.xml
.idea/runConfigurations/_MT_*.xml
.idea/shelf
.rpt2_cache/
libraries/tools/kotlin-test-js-runner/lib/
local.properties
/android-studio/sdk
/android.tests.dependencies
/clionSDK
/confluence/target
/dependencies/android.tests.dependencies
/dependencies/repo
/dist
/gh-pages
/idea/testData/debugger/tinyApp/classes*
/ideaSDK
/intellij
/jps-plugin/testData/kannotator
/js/js.translator/testData/out-min/
/js/js.translator/testData/out-pir/
/js/js.translator/testData/out/
/kotlin-native/dist
/local
/test.output
/tmp
build/
buildSrcTmp/
distTmp/
outTmp/
/test.output
/kotlin-native/dist
kotlin-ide/
docs/site
kotlin-ide/
libraries/tools/kotlin-test-js-runner/lib/
local.properties
material_theme_project_new.xml
node_modules/
out/
outTmp/
workspace.xml
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

9 changes: 8 additions & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading