Skip to content

Commit 5652129

Browse files
Merge pull request #6 from michaeltlombardi/maint/main/readme
(MAINT) Draft readme
2 parents 92c2ac5 + b0e39d7 commit 5652129

File tree

8 files changed

+112
-37
lines changed

8 files changed

+112
-37
lines changed

.build.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
#!/usr/bin/env pwsh
2-
#
31
# Copyright (c) Microsoft Corporation.
42
# Licensed under the MIT License.
5-
#
63
#requires -Version 7.2
74
#requires -Module InvokeBuild
85

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
13
FROM mcr.microsoft.com/devcontainers/base:ubuntu
24
RUN wget https://github.com/errata-ai/vale/releases/download/v2.26.0/vale_2.26.0_Linux_64-bit.tar.gz && \
35
tar -xvzf vale_2.26.0_Linux_64-bit.tar.gz -C bin && \

.github/workflows/publish.site.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ jobs:
3131
with:
3232
hugo-version: latest
3333
extended: true
34-
- name: Setup Node
35-
uses: actions/setup-node@v3
36-
with:
37-
node-version: latest
38-
cache: npm
39-
# The action defaults to search for the dependency file (package-lock.json,
40-
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
41-
# hash as a part of the cache key.
42-
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
43-
cache-dependency-path: '**/package-lock.json'
44-
- name: Install PostCSS
45-
run: |
46-
cd ./Site
47-
npm ci
48-
npm ls
49-
cd ..
34+
# - name: Setup Node
35+
# uses: actions/setup-node@v3
36+
# with:
37+
# node-version: latest
38+
# cache: npm
39+
# # The action defaults to search for the dependency file (package-lock.json,
40+
# # npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
41+
# # hash as a part of the cache key.
42+
# # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
43+
# cache-dependency-path: '**/package-lock.json'
44+
# - name: Install PostCSS
45+
# run: |
46+
# cd ./Site
47+
# npm ci
48+
# npm ls
49+
# cd ..
5050
- name: Setup PowerShell module cache
5151
id: cacher
5252
uses: actions/cache@v3
@@ -67,18 +67,18 @@ jobs:
6767
run: |
6868
Invoke-Build -Task BuildSite -SiteBaseUrl https://powershell.github.io/DSC-Samples/
6969
- name: Upload artifact
70-
uses: actions/upload-pages-artifact@v1
70+
uses: actions/upload-pages-artifact@v2
7171
with:
7272
path: ./.site/public
7373
# Deployment job
74-
# deploy:
75-
# if: github.ref == 'refs/heads/main'
76-
# environment:
77-
# name: github-pages
78-
# url: ${{ steps.deployment.outputs.page_url }}
79-
# runs-on: ubuntu-latest
80-
# needs: build
81-
# steps:
82-
# - name: Deploy to GitHub Pages
83-
# id: deployment
84-
# uses: actions/deploy-pages@v2
74+
deploy:
75+
if: github.ref == 'refs/heads/main'
76+
environment:
77+
name: github-pages
78+
url: ${{ steps.deployment.outputs.page_url }}
79+
runs-on: ubuntu-latest
80+
needs: build
81+
steps:
82+
- name: Deploy to GitHub Pages
83+
id: deployment
84+
uses: actions/deploy-pages@v2

.github/workflows/rules.github.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@v3
1313
- name: Analyze repository
14-
uses: microsoft/ps-rule@v2.8.1
14+
uses: microsoft/ps-rule@v2.9.0
1515
with:
1616
modules: "PSRule.Rules.GitHub"
1717
analyze_msft_oss:
@@ -21,7 +21,7 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v3
2323
- name: Run PSRule analysis
24-
uses: Microsoft/ps-rule@main
24+
uses: microsoft/ps-rule@v2.9.0
2525
with:
2626
modules: "PSRule.Rules.MSFT.OSS"
2727
prerelease: true

README.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# DSC-Samples
22

3-
This repository includes code samples for DSC v3.
3+
This repository includes code samples and accompanying tutorial for DSC v3. All code in this
4+
repository is for non-production samples used in the DSC documentation and is designed to be used
5+
for learning and experimentation purposes.
46

5-
<!-- Todo: Actual readme -->
7+
For more information about DSC v3, see [the DSC v3 repository][00].
8+
9+
## Contributing
10+
11+
<!-- vale off -->
12+
13+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
14+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
15+
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
16+
17+
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
18+
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the
19+
instructions provided by the bot. You will only need to do this once across all repos using our
20+
CLA.
21+
22+
This project has adopted the [Microsoft Open Source Code of Conduct][01]. For more information see
23+
the [Code of Conduct FAQ][02] or contact [[email protected]][03] with any additional questions
24+
or comments.
25+
26+
The [Contribution Guide][04] includes in-depth information and guidance for contributing to this
27+
project.
28+
29+
<!-- vale on -->
30+
31+
## Legal Notices
32+
33+
<!-- vale off -->
34+
35+
Microsoft and any contributors grant you a license to the Microsoft documentation and other content
36+
in this repository under the [Creative Commons Attribution 4.0 International Public License][05],
37+
see the [LICENSE][06] file, and grant you a license to any code in the repository under the
38+
[MIT License][07], see the [LICENSE-CODE][08] file.
39+
40+
Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the
41+
documentation may be either trademarks or registered trademarks of Microsoft in the United States
42+
and/or other countries. The licenses for this project do not grant you rights to use any Microsoft
43+
names, logos, or trademarks. Microsoft's general trademark guidelines can be found at
44+
http://go.microsoft.com/fwlink/?LinkID=254653.
45+
46+
Privacy information can be found at https://privacy.microsoft.com/en-us/.
47+
48+
Microsoft and any contributors reserve all other rights, whether under their respective copyrights,
49+
patents, or trademarks, whether by implication, estoppel or otherwise.
50+
51+
<!-- vale on -->
52+
53+
[00]: https://github.com/PowerShell/DSC/
54+
[01]: https://opensource.microsoft.com/codeofconduct/
55+
[02]: https://opensource.microsoft.com/codeofconduct/faq/
56+
[03]: mailto:[email protected]
57+
[04]: https://powershell.github.io/DSC-Samples/contributing
58+
[05]: https://creativecommons.org/licenses/by/4.0/legalcode
59+
[06]: LICENSE
60+
[07]: https://opensource.org/licenses/MIT
61+
[08]: LICENSE-CODE

SUPPORT.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Support
2+
3+
You can get help with the code samples and tutorials in this repository by filing an issue for the
4+
team or community to review and address.
5+
6+
<!-- vale off -->
7+
8+
This sample code is not supported under any Microsoft standard support program or service.
9+
10+
This sample code is provided AS IS without warranty of any kind. Microsoft disclaims all implied
11+
warranties including, without limitation, any implied warranties of merchantability or of fitness
12+
for a particular purpose. The entire risk arising out of the use or performance of the sample code
13+
and documentation remains with you. In no event shall Microsoft, its authors, or anyone else
14+
involved in the creation, production, or delivery of the scripts be liable for any damages
15+
whatsoever (including, without limitation, damages for loss of business profits, business
16+
interruption, loss of business information, or other pecuniary loss) arising out of the use of or
17+
inability to use the sample scripts or documentation, even if Microsoft has been advised of the
18+
possibility of such damages.
19+
20+
<!-- vale on -->

app/build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env pwsh
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
23

34
[CmdletBinding()]
45
param (

samples/go/resources/first/build.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env pwsh
21
# Copyright (c) Microsoft Corporation.
32
# Licensed under the MIT License.
43

0 commit comments

Comments
 (0)