-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (40 loc) · 1.16 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Create a zip with the english texts
name: Create zip with english texts
# When pushing to the master branch
on:
push:
branches:
- master
# parameters
env:
TAG: latest
ZIP: translation_files.zip
# Workflow in ubuntu
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the repository files
uses: actions/checkout@v3
- name: Create ${{ env.ZIP }} with the relevant files
run: >
zip ${{ env.ZIP }}
README.md
PlayStore/README.md
PlayStore/en-GB.xml
PlayStore_donation/README.md
PlayStore_donation/en-GB.xml
res/README.md
res/values/strings.xml
res/raw/countries_name.txt
res/raw/changelog.txt
- name: Update ${{ env.TAG }} tag to current commit
# equivalent to EndBug/latest-tag@latest but simpler
run: |
git tag --force ${{ env.TAG }}
git push --force origin tag ${{ env.TAG }}
- name: Upload ${{ env.ZIP }} to ${{ env.TAG }} release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG }}
files: ${{ env.ZIP }}