File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # These are supported funding model platforms
2+
3+ github : # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+ patreon : # Replace with a single Patreon username
5+ open_collective : # Replace with a single Open Collective username
6+ ko_fi : # Replace with a single Ko-fi username
7+ tidelift : # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+ community_bridge : # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+ liberapay : # Replace with a single Liberapay username
10+ issuehunt : # Replace with a single IssueHunt username
11+ lfx_crowdfunding : # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+ polar : # Replace with a single Polar username
13+ buy_me_a_coffee : rudygnodde
14+ thanks_dev : # Replace with a single thanks.dev username
15+ custom : # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Original file line number Diff line number Diff line change 1+ name : ' Validate Build'
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ - dev
11+
12+ jobs :
13+ build :
14+ name : Test build
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ - name : Build
22+ run : |
23+ npm install
24+ npm run build
Original file line number Diff line number Diff line change 1+ name : HACS Action
2+
3+ on :
4+ push :
5+ pull_request :
6+ schedule :
7+ - cron : " 0 0 * * *"
8+
9+ jobs :
10+ hacs :
11+ name : HACS Action
12+ runs-on : " ubuntu-latest"
13+ steps :
14+ - name : HACS Action
15+ uses : " hacs/action@main"
16+ with :
17+ category : " plugin"
Original file line number Diff line number Diff line change 1+ name : ' Protect main branch'
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ check_origin_branch :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Check origin branch
11+ if : github.base_ref == 'main' && github.head_ref != 'dev'
12+ run : |
13+ echo "ERROR: You can only merge to main from dev."
14+ exit 1
Original file line number Diff line number Diff line change 1+ name : ' Build & Publish'
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ release :
9+ name : Prepare release
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
14+ with :
15+ node-version : ' 20'
16+
17+ # Build
18+ - name : Build the file
19+ run : |
20+ npm install
21+ npm run build
22+
23+ # Upload build file to the release as an asset.
24+ - name : Upload js to release
25+ uses : svenstaro/upload-release-action@2.0.0
26+ with :
27+ repo_token : ${{ secrets.GITHUB_TOKEN }}
28+ file : dist/multitodo.js
29+ asset_name : multitodo.js
30+ tag : ${{ github.ref }}
31+ overwrite : true
You can’t perform that action at this time.
0 commit comments