Skip to content

Commit 4816e73

Browse files
authored
Update readme's examples of using the Action (#11)
1 parent d61c240 commit 4816e73

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# action-nfpm
22

33
A helper for building linux packages with [nFPM][] using version information
4-
from git tags. **Using this action allows you to specify `${VERSION}` in your
5-
nfpm.yaml and have the last valid git version used.**
4+
from git tags. Using this action allows you to specify `${VERSION}` in your
5+
nfpm.yaml and have the last valid git version used.
66

77
## Example
88

@@ -16,10 +16,11 @@ Assuming you have a repository with a **nfpm.yaml** file in its root:
1616
```yaml
1717
jobs:
1818
build:
19-
using: [self-hosted, linux]
19+
name: Build
20+
runs-on: ubuntu-latest
2021
steps:
21-
- uses: secondlife/action-nfpm@v1
22-
- uses: actions/upload-artifact@v2
22+
- uses: secondlife/action-nfpm@v2
23+
- uses: actions/upload-artifact@v4
2324
with:
2425
name: dist
2526
path: dist/
@@ -33,12 +34,13 @@ Alternative distribution archives can be built by specifying a valid nFPM
3334
```yaml
3435
jobs:
3536
build:
36-
using: [self-hosted, linux]
37+
name: Build
38+
runs-on: ubuntu-latest
3739
steps:
38-
- uses: secondlife/action-nfpm@v1
40+
- uses: secondlife/action-nfpm@v2
3941
with:
4042
packager: rpm
41-
- uses: actions/upload-artifact@v2
43+
- uses: actions/upload-artifact@v4
4244
with:
4345
name: dist
4446
path: dist/

0 commit comments

Comments
 (0)