-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impl
gh action
for automated post-release stuff
- Loading branch information
1 parent
8e113d4
commit d2b061a
Showing
2 changed files
with
38 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,37 @@ | ||
name: release tasks | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
attach_theme_files: | ||
name: attach theme files to release | ||
runs-on: "ubuntu-18.04" | ||
env: | ||
release_dir_path: "./release_files" | ||
tdesktop_theme_path: "./TDesktop/DarkShell.tdesktop-theme" | ||
android_theme_path: "./Android/DarkShell.attheme" | ||
ios_theme_path: "./iOS/DarkShell.tgios-theme" | ||
macos_theme_path: "./macOS/DarkShell.palette" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: create dir for all files | ||
run: mkdir $release_dir_path | ||
|
||
- name: move theme files to release dir | ||
run: | | ||
mv $tdesktop_theme_path $release_dir_path | ||
mv $android_theme_path $release_dir_path | ||
mv $ios_theme_path $release_dir_path | ||
mv $macos_theme_path $release_dir_path | ||
- name: attach files to release | ||
uses: AButler/[email protected] | ||
|
||
with: | ||
files: "${{ env.release_dir_path }}/*" | ||
repo-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