Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gendloop committed Jul 28, 2023
0 parents commit d881a27
Show file tree
Hide file tree
Showing 12 changed files with 570 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/Init.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Init

permissions:
contents: write
actions: write

on:
push:
branches:
- main

jobs:
init:
if: github.repository != 'gendloop/template-gendloopApp'
runs-on: ubuntu-latest
steps:
- name: get-repo-name
id: get-repo-name
run: |
repo_name=${GITHUB_REPOSITORY#*/}
echo "reponame=$repo_name" >> "$GITHUB_OUTPUT"
- name: replace-README
uses: gendloop/replace-str@main
with:
token: ${{ github.token }}
path-to-replace: README.md
replace-to-path: README.md
str-to-replace: "RepoName"
replace-to-str: ${{ steps.get-repo-name.outputs.reponame }}

- name: replace-App
uses: gendloop/replace-str@main
with:
token: ${{ github.token }}
path-to-replace: App.json
replace-to-path: ${{ steps.get-repo-name.outputs.reponame }}.json
str-to-replace: "RepoName"
replace-to-str: ${{ steps.get-repo-name.outputs.reponame }}

- name: remove
working-directory: ${{ github.workspace }}
shell: pwsh
run: |
Remove-Item App.json
Remove-Item .github/workflows/Init.yml
- name: git-push
uses: gendloop/git-push@main
with:
token: ${{ github.token }}
commit: "chore: Remove App.json and Init.yml"


35 changes: 35 additions & 0 deletions .github/workflows/Release_Version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# # Required
# version:
# description: 'New version. e.g. v0.0.0'
# required: true
# default: 'v0.0.0'
# token:
# description: 'Personal token'
# required: true
# default: ${{ github.token }}
# # Optional
# branch:
# description: 'branch'
# required: false
# default: main

name: Release_Version

permissions:
contents: write
actions: write

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
release_version:
runs-on: ubuntu-latest
steps:
- name: releaes-version
uses: gendloop/release-version@main
with:
version: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/Sync_Download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Sync_Download

permissions:
contents: write
actions: write

on:
workflow_dispatch:
schedule:
- cron: '30 15 * * 1,3,5'

jobs:
sync_download:
runs-on: ubuntu-latest
steps:
- name: sync-download
uses: gendloop/sync-download@main
with:
token: ${{ secrets.GENDLOOP_ACCESS_TOKEN }}
35 changes: 35 additions & 0 deletions App.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "1.0.0",
"description": "Gendloop's app",
"homepage": "https://github.com/gendloop/RepoName",
"license": "LGPL-2.1-or-later",
"architecture": {
"64bit": {
"url": "https://github.com/gendloop/RepoName/archive/refs/tags/v1.0.0.zip",
"hash": ""
}
},
"installer": {
"script": [
"Push-Location \"$dir\"",
"7z x RepoName-$version\\dist\\RepoName.7z",
"Remove-Item RepoName-$version -Recurse",
"Pop-Location"
]
},
"bin": "RepoName.exe",
"shortcuts": [
[
"RepoName.exe",
"RepoName"
]
],
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/gendloop/RepoName/archive/refs/tags/v$version.zip"
}
}
}
}
Loading

0 comments on commit d881a27

Please sign in to comment.